Skip to content

Instantly share code, notes, and snippets.

@arunthampi
Created January 18, 2011 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arunthampi/784468 to your computer and use it in GitHub Desktop.
Save arunthampi/784468 to your computer and use it in GitHub Desktop.
Unscientific Node vs Cramp
ab -n 1000 -c 1000 http://0.0.0.0:3000/
Server Software: thin
Server Hostname: 0.0.0.0
Server Port: 3000
Document Path: /
Document Length: 11 bytes
Concurrency Level: 1000
Time taken for tests: 0.608 seconds
Complete requests: 1000
Failed requests: 1
(Connect: 1, Receive: 0, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 110330 bytes
HTML transferred: 11033 bytes
Requests per second: 1643.83 [#/sec] (mean)
Time per request: 608.335 [ms] (mean)
Time per request: 0.608 [ms] (mean, across all concurrent requests)
Transfer rate: 177.11 [Kbytes/sec] received
Server Software:
Server Hostname: 0.0.0.0
Server Port: 3000
Document Path: /
Document Length: 11 bytes
Concurrency Level: 1000
Time taken for tests: 0.320 seconds
Complete requests: 1000
Failed requests: 2
(Connect: 2, Receive: 0, Length: 0, Exceptions: 0)
Write errors: 0
Total transferred: 132792 bytes
HTML transferred: 11066 bytes
Requests per second: 3121.61 [#/sec] (mean)
Time per request: 320.347 [ms] (mean)
Time per request: 0.320 [ms] (mean, across all concurrent requests)
Transfer rate: 404.81 [Kbytes/sec] received
require 'rubygems'
require 'cramp/controller'
class WelcomeAction < Cramp::Controller::Action
on_start :send_hello_world
def send_hello_world
render "Hello World\n"
finish
end
end
Rack::Handler::Thin.run WelcomeAction, :Port => 3000
express = require('express');
var app = express.createServer();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment