Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by twic on Saturday August 13, 2016 @06:25AM
(#12280981)
The JIT's kicking in is governed by the request count, not the request rate, so this claim is meaningless.
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.
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by grobaru on Friday August 12, 2016 @03:11AM
(#12273839)
Wow are you seriously comparing mri with jvm that receivee billions of dollars and significant manpower investments and is fundamentally different from.mri?
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by wonnage on Friday August 12, 2016 @04:56AM
(#12274180)
Yeah, this is why if you want to serve more than 200rps on a dedicated box you pick something other than Ruby in 2016.
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by technion on Friday August 12, 2016 @06:57AM
(#12274586)
This is a t2.micro instance (regardless of the hostname) running Ruby:
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by ehsanu1 on Friday August 12, 2016 @07:55AM
(#12274830)
Running what, a bare metal rack app returning an empty response and doing no real work? All requests are not made equal, which is why these RPS judgements are pretty silly unless we define the exact request.
There's the TechEmpower benchmarks for that though. And you can't deny Ruby is among the worst there.
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by StreamBright on Friday August 12, 2016 @04:08AM
(#12274035)
He is comparing one VM to another. What is the problem? Even BEAM and other VMs outperform mri.
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by grobaru on Friday August 12, 2016 @04:40AM
(#12274137)
Even Beam really ?...another one that received an insane amount of money in funding. There IS virtually nothing that prevents mri from becoming at least as fast as v8.
Again you are comparing apples to oranges.
Re:Scaling Rails to 125,000 Requests per Minute on Heroku
by StreamBright on Saturday August 13, 2016 @03:38AM
(#12280654)
Alright, I see that we are going from billions to millions. Soon we are going to hit a VM that got just few thousand in funding and still outperforms MRI. Please stop using lack of funding as justification for something that is subpar compared to another thing in the same category. Again, we are talking about VMs, so the comparison is apple to apple. One apple is more shiny than the another, I agree, the reason might be funding, I agree again.
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.