Skip to content

Instantly share code, notes, and snippets.

@anlek
Created June 8, 2015 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anlek/30f075dafe0dedce2306 to your computer and use it in GitHub Desktop.
Save anlek/30f075dafe0dedce2306 to your computer and use it in GitHub Desktop.
Stress Testing Simple apps. Node VS Sinatra (On a macbook pro 15" Mid 2012)
ab -k -c 10 -n 100 http://localhost:1337/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software:
Server Hostname: localhost
Server Port: 1337
Document Path: /
Document Length: 12 bytes
Concurrency Level: 10
Time taken for tests: 0.049 seconds
Complete requests: 100
Failed requests: 0
Keep-Alive requests: 0
Total transferred: 11300 bytes
HTML transferred: 1200 bytes
Requests per second: 2038.49 [#/sec] (mean)
Time per request: 4.906 [ms] (mean)
Time per request: 0.491 [ms] (mean, across all concurrent requests)
Transfer rate: 224.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 2 4 3.6 3 16
Waiting: 2 4 3.5 3 16
Total: 2 5 3.5 3 16
Percentage of the requests served within a certain time (ms)
50% 3
66% 4
75% 5
80% 5
90% 10
95% 15
98% 16
99% 16
100% 16 (longest request)
ab -k -c 10 -n 100 http://localhost:4567/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: WEBrick/1.3.1
Server Hostname: localhost
Server Port: 4567
Document Path: /
Document Length: 12 bytes
Concurrency Level: 10
Time taken for tests: 0.172 seconds
Complete requests: 100
Failed requests: 0
Keep-Alive requests: 100
Total transferred: 29400 bytes
HTML transferred: 1200 bytes
Requests per second: 579.82 [#/sec] (mean)
Time per request: 17.247 [ms] (mean)
Time per request: 1.725 [ms] (mean, across all concurrent requests)
Transfer rate: 166.47 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 2
Processing: 6 16 5.6 16 40
Waiting: 3 15 5.4 15 36
Total: 6 17 5.6 16 41
Percentage of the requests served within a certain time (ms)
50% 16
66% 18
75% 19
80% 21
90% 24
95% 27
98% 31
99% 41
100% 41 (longest request)
ab -k -c 10 -n 100 http://localhost:9292/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software:
Server Hostname: localhost
Server Port: 9292
Document Path: /
Document Length: 12 bytes
Concurrency Level: 10
Time taken for tests: 0.067 seconds
Complete requests: 100
Failed requests: 0
Keep-Alive requests: 100
Total transferred: 20900 bytes
HTML transferred: 1200 bytes
Requests per second: 1492.49 [#/sec] (mean)
Time per request: 6.700 [ms] (mean)
Time per request: 0.670 [ms] (mean, across all concurrent requests)
Transfer rate: 304.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 1 6 10.0 3 39
Waiting: 0 6 10.0 2 38
Total: 1 6 10.2 3 39
Percentage of the requests served within a certain time (ms)
50% 3
66% 4
75% 4
80% 5
90% 34
95% 38
98% 38
99% 39
100% 39 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment