6 ms·
Disturbing results since I so frequently have used Sinatra for hosting REST APIs for customer projects. Rethink needed. For my own projects I use Clojure + Com
by mark_l_watson 13y ago
Disturbing results since I so frequently have used Sinatra for hosting REST APIs for customer projects. Rethink needed.
For my own projects I use Clojure + Compojure and more recently added Node.js (often with Meteor) and was pleased to see that they benchmark well. One thing I especially like about Compojure with the Hiccup HTML generating library is that I see syntax errors immediately in the editor. I suppose that Scalatra with embedded HTML would provide the same benefit.
- bemurphy 13y agoMaybe benchmark it yourself? I think something is amiss, it should easily 'hello, world' at 2x higher rate than Rails. Poked around the setup a little a while back but nothing jumped out. Hunches: it's either going through webrick or not running with RACK_ENV production
- bhauer 13y agoUnicorn, nginx, production environment. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/sinatra/setup_ruby.py#L18 https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...