-
Notifications
You must be signed in to change notification settings - Fork 1
Performance Test
Prayag edited this page Apr 14, 2023
·
5 revisions
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-v verbosity How much troubleshooting info to print (Ex. -v 2)
-l Accept variable document length (use this for dynamic pages)
ab -T 'application/json' -n 10000 -c 100 -p http://127.0.0.1:8080/health
-p postfile File containing data to POST. Remember also to set -T
-T content-type Content-type header to use for POST/PUT data, eg. 'application/json'
ab -l -v 2 -T 'application/json' -n 10000 -c 100 -H "x-request-id: prayag-benchmark-test" -p post-data.json http://127.0.0.1:8080/v1/ad/recommendation > perf-result.log
This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8080
Document Path: /v1/ad/recommendation
Document Length: 558 bytes
Concurrency Level: 100
Time taken for tests: 973.115 seconds
Complete requests: 10000
Failed requests: 412
(Connect: 0, Receive: 0, Length: 412, Exceptions: 0)
Total transferred: 6961684 bytes
Total body sent: 9540000
HTML transferred: 5541684 bytes
Requests per second: 10.28 [#/sec] (mean)
Time per request: 9731.153 [ms] (mean)
Time per request: 97.312 [ms] (mean, across all concurrent requests)
Transfer rate: 6.99 [Kbytes/sec] received
9.57 kb/s sent
16.56 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 9
Processing: 405 9664 3219.5 9603 22247
Waiting: 405 9664 3219.5 9603 22247
Total: 406 9664 3219.4 9604 22247
Percentage of the requests served within a certain time (ms)
50% 9604
66% 10705
75% 11446
80% 11990
90% 13515
95% 14903
98% 16309
99% 17602
100% 22247 (longest request)