3 ms·
They can also be establishing a minimum performance gain. For Ruby, most of the expensive parts of shuffling around HTTP requests, fetching data from a DB, and
by jashmatthews 9y ago
They can also be establishing a minimum performance gain.
For Ruby, most of the expensive parts of shuffling around HTTP requests, fetching data from a DB, and serializing JSON, is done using libraries with native extensions. This means using a lightweight framework and ORM like Sinatra + Sequel can put you within striking distance (~3x slower) than Go + Gin on benchmarks like the TechEmpower benchmarks.
However, if you do something with multiple passes of tight loops over the data before you return it, Go will pull much further ahead.