Created
May 31, 2019 05:45
-
-
Save membphis/9e7e3799c6bc83156faf2f7fe2fade7e to your computer and use it in GitHub Desktop.
apisix benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google cloud, CPU: 8core Memory: 8G |
1 route: 1 upstream + 0 plugins
curl http://127.0.0.1:2379/v2/keys/apisix/routes/1 -X PUT -d value='
{
"methods": ["GET"],
"uri": "/hello",
"id": 1,
"plugin_config": {},
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:80": 1,
"127.0.0.2:80": 1
}
}
}'
benchmark:
1 worker
$ wrk -d 60 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 631.22us 557.01us 33.61ms 98.68%
Req/Sec 8.15k 841.78 14.96k 74.27%
Latency Distribution
50% 569.00us
75% 679.00us
90% 824.00us
99% 1.28ms
973460 requests in 1.00m, 177.27MB read
Requests/sec: 16197.32
Transfer/sec: 2.95MB
wrk -d 60 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 633.87us 672.99us 36.72ms 99.17%
Req/Sec 8.26k 741.36 15.59k 74.52%
Latency Distribution
50% 566.00us
75% 668.00us
90% 797.00us
99% 1.23ms
987001 requests in 1.00m, 179.74MB read
Requests/sec: 16422.67
Transfer/sec: 2.99MB
2 workers
$ wrk -d 60 -c 20 -t 3 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
3 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 548.77us 486.36us 21.25ms 98.45%
Req/Sec 11.56k 0.90k 14.24k 74.11%
Latency Distribution
50% 486.00us
75% 557.00us
90% 670.00us
99% 1.34ms
2070664 requests in 1.00m, 377.08MB read
Requests/sec: 34509.82
Transfer/sec: 6.28MB
$ wrk -d 60 -c 20 -t 3 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
3 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 543.78us 476.62us 20.84ms 98.48%
Req/Sec 11.65k 688.96 15.49k 75.61%
Latency Distribution
50% 485.00us
75% 551.00us
90% 652.00us
99% 1.29ms
2086181 requests in 1.00m, 379.90MB read
Requests/sec: 34757.43
Transfer/sec: 6.33MB
4 workers
$ wrk -d 60 -c 30 -t 4 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
4 threads and 30 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 512.77us 465.89us 18.01ms 97.42%
Req/Sec 14.41k 1.14k 18.13k 69.54%
Latency Distribution
50% 448.00us
75% 537.00us
90% 664.00us
99% 1.92ms
3441865 requests in 1.00m, 626.78MB read
Requests/sec: 57350.01
Transfer/sec: 10.44MB
$ wrk -d 60 -c 30 -t 4 --latency http://127.0.0.1:9080/hello
Running 1m test @ http://127.0.0.1:9080/hello
4 threads and 30 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 521.80us 525.59us 17.60ms 97.61%
Req/Sec 14.40k 1.18k 17.49k 70.92%
Latency Distribution
50% 448.00us
75% 537.00us
90% 667.00us
99% 2.39ms
3440251 requests in 1.00m, 626.48MB read
Requests/sec: 57321.88
Transfer/sec: 10.44MB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1 route: 1 upstream + 2 plugins (limit-count, prometheus)
benchmark: