Performance
CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz (MacBook Pro Early 2015)
PyPy
Python 3.5.3 (fdd60ed87e941677e8ea11acf9f1819466521bf2, Apr 26 2018, 01:25:35)
[PyPy 6.0.0 with GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
$ grpcannon -proto example/helloworld/helloworld.proto -call helloworld.Greeter.UnaryUnaryGreeting -d '{"name":"John Doe"}' -n 4000 -c 16 127.0.0.1:50051
Summary:
Count: 4000
Total: 924.86 ms
Slowest: 21.08 ms
Fastest: 2.52 ms
Average: 3.68 ms
Requests/sec: 4324.96
Response time histogram:
2.518 [1] |
4.374 [3655] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
6.231 [166] |∎∎
8.087 [76] |∎
9.944 [18] |
11.800 [21] |
13.657 [37] |
15.513 [2] |
17.370 [16] |
19.226 [5] |
21.083 [3] |
Latency distribution:
10% in 3.02 ms
25% in 3.12 ms
50% in 3.25 ms
75% in 3.48 ms
90% in 4.10 ms
95% in 5.99 ms
99% in 12.45 ms
Status code distribution:
[OK] 4000 responses
CPython
Python 3.6.5 (default, Jun 17 2018, 12:13:06)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin
$ grpcannon -proto example/helloworld/helloworld.proto -call helloworld.Greeter.UnaryUnaryGreeting -d '{"name":"John Doe"}' -n 4000 -c 16 127.0.0.1:50051
Summary:
Count: 4000
Total: 2893.29 ms
Slowest: 31.91 ms
Fastest: 7.10 ms
Average: 11.54 ms
Requests/sec: 1382.51
Response time histogram:
7.104 [1] |
9.585 [4] |
12.066 [3511] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
14.546 [231] |∎∎∎
17.027 [191] |∎∎
19.508 [18] |
21.989 [12] |
24.469 [12] |
26.950 [18] |
29.431 [1] |
31.911 [1] |
Latency distribution:
10% in 10.78 ms
25% in 10.88 ms
50% in 11.02 ms
75% in 11.25 ms
90% in 13.39 ms
95% in 14.65 ms
99% in 20.67 ms
Status code distribution:
[OK] 4000 responses