Skip to content

Commit

Permalink
add node benchmark for pong
Browse files Browse the repository at this point in the history
  • Loading branch information
mwotton committed Jul 26, 2010
1 parent d3a39f6 commit 3607bcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions 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.