by hota_mazi · 10y ago · 0 comments
And it is... Seriously, 2,000 requests per second is considered fast in the Rails community?
The JVM achieves several orders of magnitude that before the JIT even kicks in.
To be precise, in Java 8, if the JIT is not heavily loaded and the code cache has space, then for a method with no loops, compilation will happen when the invocation count exceeds the Tier3InvocationThreshold:
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/2b2511bd...
On my machine, with 1.8.0_11-b12, that is 200.
There's the TechEmpower benchmarks for that though. And you can't deny Ruby is among the worst there.
Again you are comparing apples to oranges.