19. Requests per second: 81.09 [#/sec] (mean)
Time per request: 12.332 [ms] (mean) Rails action
Requests per second:450.56 [#/sec] (mean) Sinatra
Time per request: 2.219 [ms] (mean)
Ubuntu 8.04, Intel Atom N270 @1.60GHz
38. class OldPollerController < ApplicationController
def poller
render :text => "Hello World!"
end
end
class Poller < Rails::Rack::Metal
def call(env)
if env["PATH_INFO"] =~ /^/poller/
[[200], {"Content-Type" => "text/html"}, "Hello, World!"]
else
[[404], {"Content-Type" => "text/html"}, "Not Found"]
end
end
end
25
39. Requests per second: 81.09 [#/sec] (mean) Rails action
Time per request: 12.332 [x`x] (mean)
Requests per second: 163.75 [#/sec] (mean) Metal + Sinatra
Time per request: 6.107 [ms] (mean)
Ubuntu 8.04, Intel Atom N270 @1.60GHz