Details for Benchmarks at
YJIT metrics from the yjit-bench suite
Overall YJIT is 34.9% faster than interpreted CRuby!
On Railsbench specifically, YJIT is 34.6% faster than CRuby!
On Railsbench specifically, YJIT is 34.6% faster than CRuby!
Performance on Headline Benchmarks
Speed of each Ruby implementation relative to the baseline CRuby measurement. Higher is better.
Memory Usage on Headline Benchmarks
Memory usage of each Ruby implementation relative to the baseline CRuby measurement. Lower is better.
Performance on Other Benchmarks
Speed of each Ruby implementation relative to the baseline CRuby measurement. Higher is better.
Memory Usage on Other Benchmarks
Memory usage of each Ruby implementation relative to the baseline CRuby measurement. Lower is better.
Performance on MicroBenchmarks
Speed of each Ruby implementation relative to the baseline CRuby measurement. Higher is better.
Memory Usage on MicroBenchmarks
Memory usage of each Ruby implementation relative to the baseline CRuby measurement. Lower is better.
Want Raw Graphs and CSV?
Benchmarks Speed Details
Benchmark Memory Usage Details
Number of Iterations and Warmups Tested
bench | No JIT warmups | No JIT iters | MJIT warmups | MJIT iters | YJIT warmups | YJIT iters |
---|---|---|---|---|---|---|
activerecord | 5 | 193 | 75 | 193 | 20 | 193 |
hexapdf | 5 | 15 | 20 | 15 | ||
liquid-render | 5 | 159 | 75 | 159 | 20 | 159 |
5 | 127 | 75 | 127 | 20 | 127 | |
psych-load | 5 | 15 | 75 | 15 | 20 | 15 |
railsbench | 5 | 15 | 75 | 15 | 20 | 15 |
binarytrees | 5 | 65 | 75 | 65 | 20 | 65 |
chunky_png | 5 | 31 | 75 | 31 | 20 | 31 |
erubi | 5 | 62 | 75 | 62 | 20 | 62 |
erubi_rails | 5 | 1047 | 75 | 1047 | 20 | 1047 |
fannkuchredux | 5 | 15 | 75 | 15 | 20 | 15 |
lee | 5 | 21 | 75 | 21 | 20 | 21 |
nbody | 5 | 261 | 75 | 261 | 20 | 261 |
optcarrot | 5 | 15 | 75 | 15 | 20 | 15 |
rubykon | 5 | 15 | 37 | 15 | 20 | 15 |
30k_ifelse | 5 | 54 | 75 | 54 | 20 | 54 |
30k_methods | 5 | 23 | 30 | 23 | 20 | 23 |
cfunc_itself | 5 | 442 | 75 | 442 | 20 | 442 |
fib | 5 | 315 | 75 | 315 | 20 | 315 |
getivar | 5 | 612 | 75 | 612 | 20 | 612 |
keyword_args | 5 | 370 | 75 | 370 | 20 | 370 |
respond_to | 5 | 100 | 75 | 100 | 20 | 100 |
setivar | 5 | 957 | 75 | 957 | 20 | 957 |
str_concat | 5 | 453 | 75 | 453 | 20 | 453 |
Different Ruby configurations want different amounts of warmup. With no JIT, CRuby needs hardly any. YJIT and MJIT 3.0 both warm up quite quickly, while MJIT in 3.1 often slows down for a time as it compiles, after an unpredictable delay.
Benchmark YJIT Stats
Hover your cursor over the benchmark names for descriptions of each benchmark.
bench | Exit Report | Inline | Outlined | Comp iSeqs | Comp Blocks | Inval | Inval Ratio | Bind Alloc | Bind Set | Const Bumps |
---|---|---|---|---|---|---|---|---|---|---|
activerecord | (click) | 1039323 | 782130 | 131 | 1295 | 0 | 0% | 0 | 0 | 0 |
hexapdf | (click) | 1151835 | 926061 | 683 | 8022 | 10 | 0% | 0 | 0 | 0 |
liquid-render | (click) | 519387 | 403926 | 150 | 1670 | 2 | 0% | 0 | 0 | 0 |
(click) | 928923 | 669347 | 375 | 5607 | 17 | 0% | 0 | 0 | 0 | |
psych-load | (click) | 348059 | 263818 | 68 | 482 | 1 | 0% | 0 | 0 | 0 |
railsbench | (click) | 2653851 | 1965192 | 1436 | 9991 | 16 | 0% | 0 | 0 | 0 |
binarytrees | (click) | 172187 | 128374 | 13 | 58 | 0 | 0% | 0 | 0 | 0 |
chunky_png | (click) | 387163 | 289944 | 88 | 998 | 0 | 0% | 0 | 0 | 0 |
erubi | (click) | 323547 | 246784 | 10 | 79 | 0 | 0% | 0 | 0 | 0 |
erubi_rails | (click) | 1961051 | 1429000 | 300 | 2006 | 4 | 0% | 0 | 0 | 0 |
fannkuchredux | (click) | 186011 | 138504 | 10 | 188 | 0 | 0% | 0 | 0 | 0 |
lee | (click) | 386779 | 292260 | 58 | 632 | 0 | 0% | 0 | 0 | 0 |
nbody | (click) | 182811 | 137569 | 12 | 171 | 0 | 0% | 0 | 0 | 0 |
optcarrot | (click) | 513755 | 442440 | 207 | 3588 | 20 | 0% | 0 | 0 | 0 |
rubykon | (click) | 321179 | 256715 | 144 | 1570 | 1 | 0% | 0 | 0 | 0 |
30k_ifelse | (click) | 5561243 | 4348842 | 9265 | 57804 | 0 | 0% | 0 | 0 | 0 |
30k_methods | (click) | 2176411 | 1657304 | 5784 | 19361 | 0 | 0% | 0 | 0 | 0 |
cfunc_itself | (click) | 170715 | 127147 | 10 | 49 | 0 | 0% | 0 | 0 | 0 |
fib | (click) | 169179 | 126755 | 10 | 38 | 0 | 0% | 0 | 0 | 0 |
getivar | (click) | 170907 | 128842 | 10 | 65 | 0 | 0% | 0 | 0 | 0 |
keyword_args | (click) | 171099 | 127492 | 11 | 51 | 0 | 0% | 0 | 0 | 0 |
respond_to | (click) | 172827 | 128601 | 10 | 64 | 0 | 0% | 0 | 0 | 0 |
setivar | (click) | 170395 | 127366 | 10 | 38 | 0 | 0% | 0 | 0 | 0 |
str_concat | (click) | 170523 | 127773 | 12 | 62 | 0 | 0% | 0 | 0 | 0 |
YJIT stats correspond to the YJIT stats exit report.
Note: currently, all stats are collected on x86_64, not ARM.
Raw JSON data files
All graphs and table data in this page comes from processing these data files, which come from benchmark runs.