3 ms·
TechEmpower has it at about 3x Ruby at net/http level, but close to 10x on BeeGo vs. Sinatra. https://www.techempower.com/benchmarks/#section=data-r9&hw=peak&t
by nostrademons 12y ago
TechEmpower has it at about 3x Ruby at net/http level, but close to 10x on BeeGo vs. Sinatra.
https://www.techempower.com/benchmarks/#section=data-r9&hw=peak&test=json https://www.techempower.com/benchmarks/#section=data-r9&hw=p...
(Interestingly, JRuby is actually within about 10% of Go.)
This doesn't surprise me all that much: the guts of Ruby's HTTP parsing & network handling is generally done in C. It's only when you layer all the code in Rails through the default Ruby interpreter that it gets slow.