Skip to content

Instantly share code, notes, and snippets.

@bIgBV
Created April 30, 2021 04:12
Show Gist options
  • Save bIgBV/4d6d76773a948734ebef1367ef5221d5 to your computer and use it in GitHub Desktop.
Save bIgBV/4d6d76773a948734ebef1367ef5221d5 to your computer and use it in GitHub Desktop.
## Base case
GRPC_BENCHMARK_DURATION=30s
GRPC_SERVER_CPUS=3
GRPC_SERVER_RAM=512m
GRPC_CLIENT_CONNECTIONS=5
GRPC_CLIENT_CONCURRENCY=50
GRPC_CLIENT_QPS=0
GRPC_CLIENT_CPUS=1
GRPC_REQUEST_PAYLOAD=100B
-----
Benchmark finished. Detailed results are located in: results/212904T210947
--------------------------------------------------------------------------------------------------------------------------------
| name | req/s | avg. latency | 90 % in | 95 % in | 99 % in | avg. cpu | avg. memory |
--------------------------------------------------------------------------------------------------------------------------------
| rust_tonic_mt | 6367 | 7.70 ms | 1.37 ms | 90.31 ms | 93.68 ms | 23.36% | 3.51 MiB |
--------------------------------------------------------------------------------------------------------------------------------
## Updated with parking lot mutex
GRPC_BENCHMARK_DURATION=30s
GRPC_SERVER_CPUS=3
GRPC_SERVER_RAM=512m
GRPC_CLIENT_CONNECTIONS=5
GRPC_CLIENT_CONCURRENCY=50
GRPC_CLIENT_QPS=0
GRPC_CLIENT_CPUS=1
GRPC_REQUEST_PAYLOAD=100B
-----
Benchmark finished. Detailed results are located in: results/212904T210427
--------------------------------------------------------------------------------------------------------------------------------
| name | req/s | avg. latency | 90 % in | 95 % in | 99 % in | avg. cpu | avg. memory |
--------------------------------------------------------------------------------------------------------------------------------
| rust_tonic_mt | 6435 | 7.59 ms | 1.34 ms | 90.33 ms | 93.69 ms | 25.63% | 3.51 MiB |
--------------------------------------------------------------------------------------------------------------------------------
All done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment