#performance #benchmarking #apachebench
Вопрос:
Я использую инструмент сравнительного анализа apache для тестирования post API, но всегда получаю ответы, отличные от 2xx: $(без-n)
ab -p search_test.txt -T application/json -n 10 http://host-url?userQuery=air
Результаты:
Document Length: 0 bytes
Concurrency Level: 1
Time taken for tests: 10.026 seconds
Complete requests: 10
Failed requests: 0
Non-2xx responses: 10
Total transferred: 1290 bytes
Total body sent: 2750
HTML transferred: 0 bytes
Requests per second: 1.00 [#/sec] (mean)
Time per request: 1002.594 [ms] (mean)
Time per request: 1002.594 [ms] (mean, across all concurrent requests)
Transfer rate: 0.13 [Kbytes/sec] received
0.27 kb/s sent
0.39 kb/s total
Connection Times (ms)
min mean[ /-sd] median max
Connect: 0 0 0.0 0 0
Processing: 999 1002 2.3 1004 1006
Waiting: 1 1 0.4 1 2
Total: 1000 1003 2.3 1004 1006
Percentage of the requests served within a certain time (ms)
50% 1004
66% 1004
75% 1004
80% 1004
90% 1006
95% 1006
98% 1006
99% 1006
100% 1006 (longest request)