Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tswicegood/145344 to your computer and use it in GitHub Desktop.
Save tswicegood/145344 to your computer and use it in GitHub Desktop.
Just some raw AB output from my quick and dirty Hello World benchmarks against Node.js.
I ran it against an /index.html file that only had Hello World in it, along with an
/index.php file that had an echo 'Hello World'; in it. Both of those tests were run
against Apache2 with mod_php5 using the default deb files from Ubuntu 9.04.
The node.js test was run using the example found on http://tinyclouds.org/node/ minus
the setTimeout() call.
! Last run on index.html
Document Path: /index.html
Document Length: 12 bytes
Concurrency Level: 100
Time taken for tests: 11.601 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 16252275 bytes
HTML transferred: 600084 bytes
Requests per second: 4310.10 [#/sec] (mean)
Time per request: 23.201 [ms] (mean)
Time per request: 0.232 [ms] (mean, across all concurrent requests)
Transfer rate: 1368.14 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 13 182.6 0 4412
Processing: 0 8 40.2 4 3324
Waiting: 0 6 26.1 4 1548
Total: 0 21 187.3 4 4412
! Last run on index.php
Document Path: /index.php
Document Length: 11 bytes
Concurrency Level: 100
Time taken for tests: 11.281 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 12900000 bytes
HTML transferred: 550000 bytes
Requests per second: 4432.37 [#/sec] (mean)
Time per request: 22.561 [ms] (mean)
Time per request: 0.226 [ms] (mean, across all concurrent requests)
Transfer rate: 1116.75 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 4 101.1 0 9001
Processing: 0 16 90.2 4 3316
Waiting: 0 12 71.0 4 2196
Total: 0 21 135.6 4 9001
! Last run from node.js
Document Path: /
Document Length: 21 bytes
Concurrency Level: 100
Time taken for tests: 18.545 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 5650000 bytes
HTML transferred: 1050000 bytes
Requests per second: 2696.14 [#/sec] (mean)
Time per request: 37.090 [ms] (mean)
Time per request: 0.371 [ms] (mean, across all concurrent requests)
Transfer rate: 297.52 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 4
Processing: 0 37 32.0 28 308
Waiting: 0 37 32.0 28 308
Total: 4 37 32.0 28 308
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment