-
Notifications
You must be signed in to change notification settings - Fork 85
QPS test
Vladimir Venediktov edited this page Feb 27, 2018
·
4 revisions
/0/4 processor Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
/0/4/5 memory 128KiB L1 cache /0/4/6 memory 12MiB L2 cache /0/26 memory 31GiB System Memory
Запустились 8 тредов + родительский процесс
1) /test
Complete requests: 5000000
Failed requests: 0
Keep-Alive requests: 5000000
Total transferred: 465000000 bytes
Total body sent: 4885000000
HTML transferred: 20000000 bytes
Requests per second: 48703.27 [#/sec] (mean)
Time per request: 2.053 [ms] (mean)
Time per request: 0.021 [ms] (mean, across all concurrent requests)
Transfer rate: 4423.25 [Kbytes/sec] received
46467.86 kb/s sent
50891.11 kb/s total
Ядра загружены на 25-30%
Cpu0 : 31.7%us, 35.1%sy, 0.0%ni, 27.6%id, 0.0%wa, 0.0%hi, 5.6%si, 0.0%st
Cpu1 : 29.2%us, 34.6%sy, 0.0%ni, 14.3%id, 0.0%wa, 0.0%hi, 21.9%si, 0.0%st
Cpu2 : 28.2%us, 28.5%sy, 0.0%ni, 39.8%id, 0.0%wa, 0.0%hi, 3.5%si, 0.0%st
Cpu3 : 30.2%us, 26.1%sy, 0.0%ni, 40.5%id, 0.0%wa, 0.0%hi, 3.2%si, 0.0%st
Cpu4 : 33.2%us, 30.9%sy, 0.0%ni, 30.9%id, 0.0%wa, 0.0%hi, 5.0%si, 0.0%st
Cpu5 : 27.6%us, 33.7%sy, 0.0%ni, 23.8%id, 0.0%wa, 0.0%hi, 14.9%si, 0.0%st
Cpu6 : 28.8%us, 30.0%sy, 0.0%ni, 38.9%id, 0.0%wa, 0.0%hi, 2.3%si, 0.0%st
Cpu7 : 26.8%us, 28.2%sy, 0.0%ni, 40.2%id, 0.0%wa, 0.0%hi, 4.8%si, 0.0%st
2) /auction
Complete requests: 500000
Failed requests: 0
Keep-Alive requests: 500000
Total transferred: 83500000 bytes
Total body sent: 523500000
HTML transferred: 38500000 bytes
Requests per second: 37059.87 [#/sec] (mean)
Time per request: 0.270 [ms] (mean)
Time per request: 0.027 [ms] (mean, across all concurrent requests)
Transfer rate: 6043.94 [Kbytes/sec] received
37892.27 kb/s sent
43936.21 kb/s total
Загрузка уже 60-80%
Cpu0 : 78.0%us, 11.0%sy, 0.0%ni, 11.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 85.0%us, 5.0%sy, 0.0%ni, 6.2%id, 0.0%wa, 0.0%hi, 3.8%si, 0.0%st
Cpu2 : 71.4%us, 14.3%sy, 0.0%ni, 9.5%id, 0.0%wa, 0.0%hi, 4.8%si, 0.0%st
Cpu3 : 54.2%us, 16.9%sy, 0.0%ni, 20.5%id, 0.0%wa, 0.0%hi, 8.4%si, 0.0%st
Cpu4 : 28.7%us, 23.0%sy, 0.0%ni, 28.7%id, 0.0%wa, 0.0%hi, 19.5%si, 0.0%st
Cpu5 : 75.9%us, 10.8%sy, 0.0%ni, 9.6%id, 0.0%wa, 0.0%hi, 3.6%si, 0.0%st
Cpu6 : 61.0%us, 27.3%sy, 0.0%ni, 7.8%id, 0.0%wa, 0.0%hi, 3.9%si, 0.0%st
Cpu7 : 82.5%us, 11.2%sy, 0.0%ni, 3.8%id, 0.0%wa, 0.0%hi, 2.5%si, 0.0%st
ab -k -p REQUEST__SHORT_NOROOT_STRING.json -T application/json -n 10000 -c 10 http://localhost:8081/openrtb_handler/auction/123
Concurrency Level: 100
Time taken for tests: 0.939429 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 50000
Total transferred: 8351503 bytes
Total POSTed: 52814886
HTML transferred: 3850693 bytes
Requests per second: 53223.82 [#/sec] (mean)
ab -k -p BID_REQUEST_BANNER.json -T application/json -n 50000 -c 100 http://localhost:8081/openrtb_handler/auction/123
Concurrency Level: 100
Time taken for tests: 1.134308 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 50000
Total transferred: 8360688 bytes
Total POSTed: 50464984
HTML transferred: 3854928 bytes
Requests per second: 44079.74 [#/sec] (mean)
ab -k -p BID_REQUEST_BANNER.json -T application/json -n 100000 -c 30 http://localhost:9081/bid/123
Concurrency Level: 30
Time taken for tests: 0.949118 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 100000
Total transferred: 45700914 bytes
Total POSTed: 98731584
HTML transferred: 36000720 bytes
Requests per second: 105360.98 [#/sec] (mean)
Time per request: 0.285 [ms] (mean)
Time per request: 0.009 [ms] (mean, across all concurrent requests)
Transfer rate: 47021.55 [Kbytes/sec] received
101586.48 kb/s sent
148608.88 kb/s total
Requests per second: 105360.98 [#/sec] (mean)