Skip to content

Instantly share code, notes, and snippets.

@mattfawcett
Created February 19, 2010 22:54
Show Gist options
  • Save mattfawcett/309322 to your computer and use it in GitHub Desktop.
Save mattfawcett/309322 to your computer and use it in GitHub Desktop.
require "rubygems"
require "sinatra"
get "/" do
"Hello World"
end
var sys = require('sys'), http = require('http');
http.createServer(function(req, res) {
res.sendHeader(200, {'Content-Type': 'text/html'});
res.write('Hello World');
res.close();
}).listen(8080);
sys.puts('Server running at http://127.0.0.1:8080/');
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8080
Document Path: /
Document Length: 11 bytes
Concurrency Level: 100
Time taken for tests: 0.165 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 74000 bytes
HTML transferred: 11000 bytes
Requests per second: 6075.11 [#/sec] (mean)
Time per request: 16.461 [ms] (mean)
Time per request: 0.165 [ms] (mean, across all concurrent requests)
Transfer rate: 439.02 [Kbytes/sec] received
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 4567
Document Path: /
Document Length: 11 bytes
Concurrency Level: 100
Time taken for tests: 0.622 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 148000 bytes
HTML transferred: 11000 bytes
Requests per second: 1606.66 [#/sec] (mean)
Time per request: 62.241 [ms] (mean)
Time per request: 0.622 [ms] (mean, across all concurrent requests)
Transfer rate: 232.21 [Kbytes/sec] received
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment