Skip to content

Instantly share code, notes, and snippets.

ar http = require('http');
var fs = require('fs');
var util = require('util');
var fileCache;
var sendFile = function(conn, file) {
conn.writeHead(200, {"Content-Type": "text/html", "Content-Length": file.length});
conn.write(file);
conn.end();
}
@courtneycouch
courtneycouch / Raw results
Created May 11, 2012 03:53
AB test results - nodejs vs vert.x
Single core - ab test single concurrency 100k requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8080
Document Path: /
Document Length: 89 bytes
Concurrency Level: 1