Skip to content

Instantly share code, notes, and snippets.

@outsideris
Created June 12, 2012 16:47
Show Gist options
  • Save outsideris/2918652 to your computer and use it in GitHub Desktop.
Save outsideris/2918652 to your computer and use it in GitHub Desktop.
node.js benchmark step by ry
# https://github.com/joyent/node/issues/3383#issuecomment-6242862
% git clone git://github.com/joyent/node.git node
% cd node
% ./configure && make
% cp out/Release/node /tmp/node-master
% git checkout origin/v0.6
% rm -rf out && ./configure && make
% cp out/Release/node /tmp/node-v0.6
% PORT=6000 /tmp/node-v0.6 benchmark/http_simple.js &
% PORT=8000 /tmp/node-master benchmark/http_simple.js &
[Quit other programs. Kill the mp3 player, browser, etc.]
% ab -t 30 -c 100 http://localhost:6000/bytes/123 | grep Req
[Post the results of this command.]
% ab -t 30 -c 100 http://localhost:8000/bytes/123 | grep Req
[Post the results of this command.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment