Created
July 4, 2013 20:37
-
-
Save colindean/5930096 to your computer and use it in GitHub Desktop.
A simple benchmark of Python and Ruby built in web servers, SimpleHTTPServer and WEBrick, respectively. Python 2.7.3, Ruby 2.0.0. `ruby -run -e httpd . -p 5000` `python -m SimpleHTTPServer 5000` `ab -n 1000 -c 5 -t 10 http://127.0.0.1:5000/`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: SimpleHTTP/0.6 | |
Server Hostname: 127.0.0.1 | |
Server Port: 5000 | |
Document Path: / | |
Document Length: 2760 bytes | |
Concurrency Level: 5 | |
Time taken for tests: 10.002 seconds | |
Complete requests: 5262 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 15338730 bytes | |
HTML transferred: 14523120 bytes | |
Requests per second: 526.11 [#/sec] (mean) | |
Time per request: 9.504 [ms] (mean) | |
Time per request: 1.901 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1497.66 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 2 9 1.3 9 22 | |
Waiting: 2 9 1.3 9 22 | |
Total: 2 9 1.3 9 22 | |
Percentage of the requests served within a certain time (ms) | |
50% 9 | |
66% 9 | |
75% 10 | |
80% 10 | |
90% 12 | |
95% 12 | |
98% 13 | |
99% 14 | |
100% 22 (longest request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: WEBrick/1.3.1 | |
Server Hostname: 127.0.0.1 | |
Server Port: 5000 | |
Document Path: / | |
Document Length: 5830 bytes | |
Concurrency Level: 5 | |
Time taken for tests: 10.001 seconds | |
Complete requests: 2434 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 14604000 bytes | |
HTML transferred: 14190220 bytes | |
Requests per second: 243.36 [#/sec] (mean) | |
Time per request: 20.545 [ms] (mean) | |
Time per request: 4.109 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1425.96 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 20 5.3 20 49 | |
Waiting: 4 18 4.8 18 38 | |
Total: 5 20 5.3 20 50 | |
Percentage of the requests served within a certain time (ms) | |
50% 20 | |
66% 22 | |
75% 24 | |
80% 24 | |
90% 27 | |
95% 30 | |
98% 34 | |
99% 35 | |
100% 50 (longest request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment