Skip to content

Instantly share code, notes, and snippets.

@sintaxi
Created December 3, 2009 02:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sintaxi/247830 to your computer and use it in GitHub Desktop.
Save sintaxi/247830 to your computer and use it in GitHub Desktop.
Benchmarking Joyent Smart Platform and Node.js
ab -n 1000 -c 50 http://127.0.0.1:8080/
var http = require('http');
http.createServer(function (req, res) {
res.sendHeader(200, {'Content-Type': 'text/plain'});
res.sendBody('Hello World');
res.finish();
}).listen(8000);
function main( aRequest ) {
return "Hello World";
}
Concurrency Level: 50
Time taken for tests: 0.211 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 113000 bytes
HTML transferred: 21000 bytes
Requests per second: 4743.61 [#/sec] (mean)
Time per request: 10.540 [ms] (mean)
Time per request: 0.211 [ms] (mean, across all concurrent requests)
Transfer rate: 523.46 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.6 0 10
Processing: 2 9 3.6 8 25
Waiting: 2 9 3.4 8 25
Total: 3 10 3.4 9 25
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 9
66% 9
75% 10
80% 13
90% 14
95% 16
98% 18
99% 25
100% 25 (longest request)
Concurrency Level: 50
Time taken for tests: 5.640 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 131000 bytes
HTML transferred: 11000 bytes
Requests per second: 177.30 [#/sec] (mean)
Time per request: 282.009 [ms] (mean)
Time per request: 5.640 [ms] (mean, across all concurrent requests)
Transfer rate: 22.68 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 3.6 0 78
Processing: 13 275 99.0 254 699
Waiting: 13 262 86.4 250 629
Total: 14 276 99.0 254 699
Percentage of the requests served within a certain time (ms)
50% 254
66% 281
75% 310
80% 334
90% 410
95% 488
98% 564
99% 607
100% 699 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment