Skip to content

Instantly share code, notes, and snippets.

@kentbull
Last active December 20, 2023 19:33
Show Gist options
  • Save kentbull/7c60f575e911bff3d65df9b6619edffa to your computer and use it in GitHub Desktop.
Save kentbull/7c60f575e911bff3d65df9b6619edffa to your computer and use it in GitHub Desktop.
#
# First test run (stopped after 23 seconds)
#
$ docker-compose run --rm -it bench -c 200 -n 2000 http://keria:3903/health
# stdout ->
[+] Creating 1/0
✔ Container keria-bench-keria-1 Running 0.0s
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking keria (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
^C
Server Software: Ioflo
Server Hostname: keria
Server Port: 3903
Document Path: /health
Document Length: 71 bytes
Concurrency Level: 200
Time taken for tests: 23.889 seconds
Complete requests: 1827
Failed requests: 0
Total transferred: 376362 bytes
HTML transferred: 129717 bytes
Requests per second: 76.48 [#/sec] (mean)
Time per request: 2615.156 [ms] (mean)
Time per request: 13.076 [ms] (mean, across all concurrent requests)
Transfer rate: 15.39 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 13 119.4 0 2025
Processing: 36 156 1149.6 62 14535
Waiting: 5 126 1149.9 32 14511
Total: 37 169 1237.7 62 15596
Percentage of the requests served within a certain time (ms)
50% 62
66% 64
75% 65
80% 66
90% 67
95% 69
98% 71
99% 1096
100% 15596 (longest request)
#
# Second test run (stopping at 12000 completions
#
$ docker-compose run --rm -it bench -c 1000 -n 20000 http://keria:3903/health
# stdout ->
[+] Creating 1/0
✔ Container keria-bench-keria-1 Running 0.0s
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking keria (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
^C
Server Software: Ioflo
Server Hostname: keria
Server Port: 3903
Document Path: /health
Document Length: 71 bytes
Concurrency Level: 1000
Time taken for tests: 63.642 seconds
Complete requests: 12132
Failed requests: 0
Total transferred: 2500428 bytes
HTML transferred: 861798 bytes
Requests per second: 190.63 [#/sec] (mean)
Time per request: 5245.774 [ms] (mean)
Time per request: 5.246 [ms] (mean, across all concurrent requests)
Transfer rate: 38.37 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 173.2 0 11204
Processing: 32 62 44.8 62 3506
Waiting: 3 32 44.8 31 3475
Total: 37 71 183.4 63 11271
Percentage of the requests served within a certain time (ms)
50% 63
66% 64
75% 65
80% 66
90% 68
95% 71
98% 74
99% 77
100% 11271 (longest request)
@kentbull
Copy link
Author

I cancelled the benchmark after about 23 seconds.

@kentbull
Copy link
Author

I added a second benchmark with higher concurrency and request numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment