Created
September 24, 2011 05:36
-
-
Save creationix/1239013 to your computer and use it in GitHub Desktop.
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
tim@2540p:~/luanode$ ab -n 20000 -c 100 http://127.0.0.1:8080/ | |
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) | |
Completed 2000 requests | |
Completed 4000 requests | |
Completed 6000 requests | |
Completed 8000 requests | |
Completed 10000 requests | |
Completed 12000 requests | |
Completed 14000 requests | |
Completed 16000 requests | |
Completed 18000 requests | |
Completed 20000 requests | |
Finished 20000 requests | |
Server Software: | |
Server Hostname: 127.0.0.1 | |
Server Port: 8080 | |
Document Path: / | |
Document Length: 11 bytes | |
Concurrency Level: 100 | |
Time taken for tests: 0.986 seconds | |
Complete requests: 20000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 1520000 bytes | |
HTML transferred: 220000 bytes | |
Requests per second: 20280.21 [#/sec] (mean) | |
Time per request: 4.931 [ms] (mean) | |
Time per request: 0.049 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1505.17 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.4 0 7 | |
Processing: 0 4 2.4 4 13 | |
Waiting: 0 4 2.4 4 13 | |
Total: 0 5 2.4 4 16 | |
Percentage of the requests served within a certain time (ms) | |
50% 4 | |
66% 6 | |
75% 7 | |
80% 7 | |
90% 8 | |
95% 9 | |
98% 10 | |
99% 11 | |
100% 16 (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
local http = require("lib/http") | |
http.create_server(function (req, res) | |
res:write_head(200, { | |
["Content-Type"] = "text/plain", | |
["Content-Length"] = "11" | |
}) | |
res:write("Hello World") | |
res:finish() | |
end):listen(8080) | |
print("Server listening at http://localhost:8080/") |
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
tim@2540p:~/nodejs$ ab -n 20000 -c 100 http://127.0.0.1:8080/ | |
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) | |
Completed 2000 requests | |
Completed 4000 requests | |
Completed 6000 requests | |
Completed 8000 requests | |
Completed 10000 requests | |
Completed 12000 requests | |
Completed 14000 requests | |
Completed 16000 requests | |
Completed 18000 requests | |
Completed 20000 requests | |
Finished 20000 requests | |
Server Software: | |
Server Hostname: 127.0.0.1 | |
Server Port: 8080 | |
Document Path: / | |
Document Length: 11 bytes | |
Concurrency Level: 100 | |
Time taken for tests: 3.148 seconds | |
Complete requests: 20000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 1900000 bytes | |
HTML transferred: 220000 bytes | |
Requests per second: 6354.18 [#/sec] (mean) | |
Time per request: 15.738 [ms] (mean) | |
Time per request: 0.157 [ms] (mean, across all concurrent requests) | |
Transfer rate: 589.50 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.3 0 6 | |
Processing: 2 16 7.9 15 41 | |
Waiting: 2 16 7.9 15 41 | |
Total: 2 16 7.9 15 41 | |
Percentage of the requests served within a certain time (ms) | |
50% 15 | |
66% 19 | |
75% 22 | |
80% 23 | |
90% 27 | |
95% 29 | |
98% 32 | |
99% 35 | |
100% 41 (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
var HTTP = require("http") | |
HTTP.createServer(function (req, res) { | |
res.writeHead(200, { | |
"Content-Type": "text/plain", | |
"Content-Length": "11" | |
}); | |
res.write("Hello World"); | |
res.end(); | |
}).listen(8080); | |
console.log("Server listening at http://localhost:8080/"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment