Details for Benchmarks at
YJIT metrics from the yjit-bench suite using Ruby 7ffff3e043
Using the geomean
of the headline benchmarks
for x86
YJIT 3.4.0dev is
- 63.1% faster than CRuby 3.4.0dev
- 66.2% faster than CRuby 3.4.0dev
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?
- Headlining benchmarks (x86_64)
- All benchmarks (x86_64)
- CSV speed results (x86_64)
- Headlining benchmarks (aarch64)
- All benchmarks (aarch64)
- CSV speed results (aarch64)
Benchmarks Speed Details
Benchmark Memory Usage Details
Number of Iterations and Warmups Tested
bench | CRuby 3.4.0dev warmups | CRuby 3.4.0dev iters | YJIT 3.4.0dev warmups | YJIT 3.4.0dev iters |
---|---|---|---|---|
activerecord | 30 | 479 | 30 | 479 |
chunky-png | 30 | 30 | 30 | 30 |
erubi-rails | 30 | 15 | 30 | 15 |
hexapdf | 30 | 15 | 30 | 15 |
liquid-c | 30 | 347 | 30 | 347 |
liquid-compile | 30 | 335 | 30 | 335 |
liquid-render | 30 | 242 | 30 | 242 |
lobsters | 30 | 23 | 30 | 23 |
30 | 162 | 30 | 162 | |
psych-load | 30 | 15 | 30 | 15 |
railsbench | 30 | 15 | 30 | 15 |
ruby-lsp | 30 | 383 | 30 | 383 |
sequel | 30 | 297 | 30 | 297 |
binarytrees | 30 | 82 | 30 | 82 |
erubi | 30 | 75 | 30 | 75 |
etanni | 30 | 51 | 30 | 51 |
fannkuchredux | 30 | 24 | 30 | 24 |
fluentd | 30 | 15 | 30 | 15 |
graphql | 30 | 15 | 30 | 15 |
graphql-native | 30 | 33 | 30 | 33 |
lee | 30 | 19 | 30 | 19 |
nbody | 30 | 276 | 30 | 276 |
optcarrot | 30 | 15 | 30 | 15 |
rack | 30 | 181 | 30 | 181 |
ruby-json | 30 | 15 | 30 | 15 |
rubykon | 30 | 15 | 30 | 15 |
tinygql | 30 | 42 | 30 | 42 |
30k_ifelse | 30 | 55 | 30 | 55 |
30k_methods | 30 | 23 | 30 | 23 |
cfunc_itself | 30 | 753 | 30 | 753 |
fib | 30 | 416 | 30 | 416 |
getivar | 30 | 943 | 30 | 943 |
keyword_args | 30 | 492 | 30 | 492 |
respond_to | 30 | 1170 | 30 | 1170 |
setivar | 30 | 1668 | 30 | 1668 |
setivar_object | 30 | 471 | 30 | 471 |
setivar_young | 30 | 470 | 30 | 470 |
str_concat | 30 | 398 | 30 | 398 |
throw | 30 | 807 | 30 | 807 |
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 | Compile Time MS |
---|---|---|---|---|---|---|---|---|---|---|---|
activerecord | (click) | 737619 | 676818 | 50 | 513 | 3 | 0% | 0 | 0 | 0 | 15.454105 |
chunky-png | (click) | 308131 | 269483 | 87 | 1099 | 1 | 0% | 0 | 0 | 0 | 32.827233 |
erubi-rails | (click) | 1611684 | 1416255 | 287 | 2904 | 1 | 0% | 0 | 0 | 0 | 82.276686 |
hexapdf | (click) | 1332396 | 1223950 | 599 | 12086 | 36 | 0% | 0 | 0 | 0 | 352.259557 |
liquid-c | (click) | 485272 | 434112 | 120 | 1701 | 5 | 0% | 0 | 0 | 0 | 46.970453 |
liquid-compile | (click) | 346286 | 289436 | 150 | 2022 | 2 | 0% | 0 | 0 | 0 | 61.266096 |
liquid-render | (click) | 515778 | 448828 | 143 | 2152 | 5 | 0% | 0 | 0 | 0 | 59.340439 |
lobsters | (click) | 7391389 | 6410443 | 3182 | 48146 | 64 | 0% | 0 | 0 | 0 | 1609.538501 |
(click) | 684515 | 604278 | 345 | 4760 | 12 | 0% | 0 | 0 | 0 | 139.523868 | |
psych-load | (click) | 262571 | 220831 | 65 | 600 | 3 | 0% | 0 | 0 | 0 | 18.721538 |
railsbench | (click) | 2465012 | 2173756 | 1357 | 12446 | 16 | 0% | 0 | 0 | 0 | 361.720338 |
ruby-lsp | (click) | 5304977 | 4504133 | 3395 | 49687 | 397 | 0% | 4 | 0 | 0 | 1509.662128 |
sequel | (click) | 454508 | 429970 | 16 | 127 | 0 | 0% | 0 | 0 | 0 | 4.897965 |
binarytrees | (click) | 9306 | 8120 | 11 | 75 | 0 | 0% | 0 | 0 | 0 | 2.924573 |
erubi | (click) | 234394 | 221682 | 10 | 95 | 0 | 0% | 0 | 0 | 0 | 3.197707 |
etanni | (click) | 32063 | 22322 | 12 | 90 | 0 | 0% | 0 | 0 | 0 | 3.021095 |
fannkuchredux | (click) | 22558 | 23293 | 9 | 233 | 0 | 0% | 0 | 0 | 0 | 7.265826 |
fluentd | (click) | 334926 | 292859 | 12 | 104 | 0 | 0% | 0 | 0 | 0 | 3.356515 |
graphql | (click) | 398661 | 343463 | 70 | 658 | 0 | 0% | 0 | 0 | 0 | 20.264376 |
graphql-native | (click) | 364464 | 312088 | 42 | 264 | 0 | 0% | 0 | 0 | 0 | 8.742122 |
lee | (click) | 282858 | 259179 | 49 | 691 | 0 | 0% | 0 | 0 | 0 | 21.8904 |
nbody | (click) | 18283 | 17348 | 11 | 189 | 0 | 0% | 0 | 0 | 0 | 5.645146 |
optcarrot | (click) | 314630 | 268142 | 194 | 4242 | 32 | 0% | 0 | 0 | 0 | 99.762507 |
rack | (click) | 240390 | 206718 | 31 | 301 | 0 | 0% | 0 | 0 | 0 | 8.719534 |
ruby-json | (click) | 27788 | 25201 | 12 | 203 | 0 | 0% | 0 | 0 | 0 | 6.213994 |
rubykon | (click) | 130154 | 119633 | 144 | 1485 | 3 | 0% | 0 | 0 | 0 | 41.614047 |
tinygql | (click) | 278942 | 237473 | 63 | 773 | 5 | 0% | 0 | 0 | 0 | 22.163408 |
30k_ifelse | (click) | 4909644 | 4374870 | 9264 | 50817 | 0 | 0% | 0 | 0 | 0 | 1386.413102 |
30k_methods | (click) | 1850351 | 1594387 | 5782 | 19371 | 0 | 0% | 0 | 0 | 0 | 495.093476 |
cfunc_itself | (click) | 7868 | 6931 | 9 | 73 | 0 | 0% | 0 | 0 | 0 | 2.372286 |
fib | (click) | 5044 | 5012 | 8 | 49 | 0 | 0% | 0 | 0 | 0 | 1.780895 |
getivar | (click) | 6179 | 6402 | 8 | 74 | 0 | 0% | 0 | 0 | 0 | 2.165765 |
keyword_args | (click) | 8481 | 7140 | 10 | 75 | 0 | 0% | 0 | 0 | 0 | 2.588822 |
respond_to | (click) | 8611 | 8551 | 9 | 88 | 0 | 0% | 0 | 0 | 0 | 2.808656 |
setivar | (click) | 5330 | 4983 | 8 | 54 | 0 | 0% | 0 | 0 | 0 | 1.807346 |
setivar_object | (click) | 5668 | 5003 | 8 | 54 | 0 | 0% | 0 | 0 | 0 | 1.852202 |
setivar_young | (click) | 6435 | 5792 | 9 | 62 | 0 | 0% | 0 | 0 | 0 | 2.077975 |
str_concat | (click) | 8079 | 7814 | 11 | 87 | 0 | 0% | 0 | 0 | 0 | 2.795835 |
throw | (click) | 7723 | 6444 | 10 | 69 | 0 | 0% | 0 | 0 | 0 | 2.331415 |
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.
- aarch64_prod_ruby_no_jit
- aarch64_prod_ruby_with_yjit
- aarch64_yjit_stats
- x86_64_prod_ruby_no_jit
- x86_64_prod_ruby_with_yjit
- x86_64_yjit_stats