ruby 1.9.2 + async_sinatra + thin thin start
ab -n 10000 -c 100 http://localhost:3000/
-> 49ms / request
node server.js
| module GlobalConstant | |
| AUTORESOLVE = [] | |
| AUTOIMPORT = [] | |
| def self.install | |
| Object.instance_eval do | |
| class << self | |
| alias old_const_missing const_missing | |
| def const_missing constant | |
| to_check = GlobalConstant::AUTORESOLVE.keep_if { |m| m.singleton_class == self } + GlobalConstant::AUTOIMPORT |