You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to measure logging overhead for Cassandra client gem recently and decided to compare the closest thing I could get to a no-op logger in JRuby and MRI.
Code:
require 'benchmark/ips'
require 'logger'
logger = ::Logger.new('/dev/null')
Benchmark.ips do |x|
x.report('debug') { logger.debug {} }
end
While not the most scientific way to compare, MRI is roughly twice as fast as JRuby. I haven't profiled anything yet. I just wanted to file this for now so it doesn't get lost.
The text was updated successfully, but these errors were encountered:
One both MacOS and Fedora25 I see MRI about 15% faster than us but definitely not 2x slower. I am using Java 8 though. I know we tried to figure this out but your env seems like an anomoly in this report (although I would have loved it if we had been able to figure this out).
I was trying to measure logging overhead for Cassandra client gem recently and decided to compare the closest thing I could get to a no-op logger in JRuby and MRI.
Code:
JRuby 1.7.11:
MRI 2.1.1:
While not the most scientific way to compare, MRI is roughly twice as fast as JRuby. I haven't profiled anything yet. I just wanted to file this for now so it doesn't get lost.
The text was updated successfully, but these errors were encountered: