rubinius/rubinius — Issue #1412: 2 order of magnitude perf diff between mri & rbx; C ext?
Author: chuckremes
Created: 2011-11-16 16:23:37+00:00
State: open

https://gist.github.com/1370519

I was noticing a big performance disparity between MRI & RBX so I started reducing the code to a small example. The performance of the 'json' gem with C extension is *very* poor on RBX particularly for parsing JSON. The gist shows a multiple order of magnitude difference.

I though in the pack/unpack as a baseline/comparison. Unfortunately, it also shows that RBX is slower than MRI (though the main point of this is the C ext performance).

It's entirely possible this is a GC benchmark (creation and reaping of lots of strings). I'll post a follow-up as soon as my -Xprofile and -Xprofiler.graph runs for RBX are complete.