Permalink
Browse files

add node benchmark for pong

  • Loading branch information...
1 parent d3a39f6 commit 3607bcb8cc3001765d4d783211f94f9be2fa6686 @mwotton mwotton committed Jul 26, 2010
Showing with 10 additions and 0 deletions.
  1. +4 −0 node-bench/README.txt
  2. +6 −0 node-bench/pong.js
View
4 node-bench/README.txt
@@ -0,0 +1,4 @@
+brew install node
+
+on a mac, or do the ./configure && make && make install dance from the tarball
+on nodejs.org
View
6 node-bench/pong.js
@@ -0,0 +1,6 @@
+var http = require('http');
+http.createServer(function (req, res) {
+ res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.end('PONG');
+}).listen(8124, "localhost");
+console.log('Server running at http://127.0.0.1:8124/');

0 comments on commit 3607bcb

Please sign in to comment.