Skip to content

Instantly share code, notes, and snippets.

@kdmsnr
Created October 13, 2010 16:14
Show Gist options
  • Save kdmsnr/624366 to your computer and use it in GitHub Desktop.
Save kdmsnr/624366 to your computer and use it in GitHub Desktop.
#############################################
### misc/standalone_cgi/bin/server
#############################################
kdmsnr:~# ab -n 100 -c 10 http://127.0.0.1:19292/index.rb
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done
Server Software: WEBrick/1.3.1
Server Hostname: 127.0.0.1
Server Port: 19292
Document Path: /index.rb
Document Length: 2414 bytes
Concurrency Level: 10
Time taken for tests: 115.557 seconds
Complete requests: 100
Failed requests: 3
(Connect: 3, Receive: 0, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 274900 bytes
HTML transferred: 241400 bytes
Requests per second: 0.87 [#/sec] (mean)
Time per request: 11555.703 [ms] (mean)
Time per request: 1155.570 [ms] (mean, across all concurrent requests)
Transfer rate: 2.32 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 48 208.3 0 951
Processing: 8227 11364 4171.1 9889 24106
Waiting: 8226 11357 4154.2 9888 23926
Total: 8227 11412 4309.8 9889 24824
Percentage of the requests served within a certain time (ms)
50% 9889
66% 10960
75% 11326
80% 11608
90% 22943
95% 23911
98% 24108
99% 24824
100% 24824 (longest request)
#############################################
### rackup -s webrick
#############################################
kdmsnr:~# ab -n 100 -c 10 http://127.0.0.1:9292/index.rb
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done
Server Software: WEBrick/1.3.1
Server Hostname: 127.0.0.1
Server Port: 9292
Document Path: /index.rb
Document Length: 5970 bytes
Concurrency Level: 10
Time taken for tests: 86.266 seconds
Complete requests: 100
Failed requests: 5
(Connect: 0, Receive: 0, Length: 5, Exceptions: 0)
Write errors: 0
Total transferred: 630510 bytes
HTML transferred: 597010 bytes
Requests per second: 1.16 [#/sec] (mean)
Time per request: 8626.558 [ms] (mean)
Time per request: 862.656 [ms] (mean, across all concurrent requests)
Transfer rate: 7.14 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 47 202.6 0 925
Processing: 7054 8544 1489.3 7843 13267
Waiting: 6958 8484 1487.5 7757 13212
Total: 7054 8591 1604.7 7845 13474
Percentage of the requests served within a certain time (ms)
50% 7845
66% 8440
75% 9173
80% 9419
90% 12214
95% 12929
98% 13267
99% 13474
100% 13474 (longest request)
#############################################
### Apache + CGI + rackup (with rubygems)
#############################################
kdmsnr:~# ab -n 100 -c 10 http://127.0.0.1/~kdmsnr/tdiary/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done
Server Software: Apache/2.2.14
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /~kdmsnr/tdiary/
Document Length: 5990 bytes
Concurrency Level: 10
Time taken for tests: 114.008 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 634300 bytes
HTML transferred: 599000 bytes
Requests per second: 0.88 [#/sec] (mean)
Time per request: 11400.833 [ms] (mean)
Time per request: 1140.083 [ms] (mean, across all concurrent requests)
Transfer rate: 5.43 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 6
Processing: 7804 11266 3504.0 9657 23402
Waiting: 7669 11070 3386.3 9549 23402
Total: 7805 11267 3504.1 9657 23402
Percentage of the requests served within a certain time (ms)
50% 9657
66% 10063
75% 13914
80% 14527
90% 18150
95% 19283
98% 19520
99% 23402
100% 23402 (longest request)
#############################################
### Apache + CGI + rackup (without rubygems)
#############################################
kdmsnr:~# ab -n 100 -c 10 http://127.0.0.1/~kdmsnr/tdiary/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done
Server Software: Apache/2.2.14
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /~kdmsnr/tdiary/
Document Length: 5990 bytes
Concurrency Level: 10
Time taken for tests: 51.686 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 634300 bytes
HTML transferred: 599000 bytes
Requests per second: 1.93 [#/sec] (mean)
Time per request: 5168.578 [ms] (mean)
Time per request: 516.858 [ms] (mean, across all concurrent requests)
Transfer rate: 11.98 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 7
Processing: 4150 5145 625.5 4956 6852
Waiting: 4139 5075 613.9 4906 6727
Total: 4150 5145 625.5 4956 6852
Percentage of the requests served within a certain time (ms)
50% 4956
66% 5111
75% 5235
80% 5780
90% 6298
95% 6500
98% 6713
99% 6852
100% 6852 (longest request)
#############################################
# Apache + CGI
#############################################
kdmsnr:~# ab -n 100 -c 10 http://127.0.0.1/~kdmsnr/tdiary/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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).....done
Server Software: Apache/2.2.14
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /~kdmsnr/tdiary/
Document Length: 2424 bytes
Concurrency Level: 10
Time taken for tests: 10.620 seconds
Complete requests: 100
Failed requests: 15
(Connect: 0, Receive: 0, Length: 15, Exceptions: 0)
Write errors: 0
Total transferred: 277339 bytes
HTML transferred: 242039 bytes
Requests per second: 9.42 [#/sec] (mean)
Time per request: 1061.977 [ms] (mean)
Time per request: 106.198 [ms] (mean, across all concurrent requests)
Transfer rate: 25.50 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 2.2 0 12
Processing: 165 1046 251.7 1034 1808
Waiting: 165 1022 248.3 1005 1790
Total: 166 1047 251.8 1034 1808
Percentage of the requests served within a certain time (ms)
50% 1034
66% 1096
75% 1116
80% 1200
90% 1378
95% 1528
98% 1662
99% 1808
100% 1808 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment