YJIT Benchmarks

Details for Benchmarks at 2024-01-09 19:08:15 UTC

YJIT metrics from the yjit-bench suite using Ruby 80da9b1547

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 63.7% faster than CRuby 3.4.0dev
On railsbench it is
  • 66.3% 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?

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 481 30 481
chunky-png 30 30 30 30
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 343 30 343
liquid-compile 30 336 30 336
liquid-render 30 243 30 243
lobsters 30 23 30 23
mail 30 165 30 165
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 390 30 390
sequel 30 297 30 297
binarytrees 30 81 30 81
erubi 30 76 30 76
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
matmul 30 15 30 15
nbody 30 280 30 280
nqueens 30 106 30 106
optcarrot 30 15 30 15
rack 30 178 30 178
ruby-json 30 15 30 15
rubykon 30 15 30 15
sudoku 30 15 30 15
tinygql 30 41 30 41
30k_ifelse 30 55 30 55
30k_methods 30 23 30 23
cfunc_itself 30 750 30 750
fib 30 416 30 416
getivar 30 943 30 943
keyword_args 30 492 30 492
respond_to 30 1179 30 1179
setivar 30 1668 30 1668
setivar_object 30 348 30 348
setivar_young 30 380 30 380
str_concat 30 408 30 408
throw 30 850 30 850

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) 735628 651231 50 512 3 0% 0 0 0 15.218243
chunky-png (click) 307325 261267 87 1104 1 0% 0 0 0 33.388021
erubi-rails (click) 1613596 1385887 287 2919 1 0% 0 0 0 83.010731
hexapdf (click) 1330826 1141369 598 12085 36 0% 0 0 0 356.897338
liquid-c (click) 486269 444504 120 1701 5 0% 0 0 0 47.084547
liquid-compile (click) 348404 259568 150 2025 2 0% 0 0 0 61.837954
liquid-render (click) 519391 379452 143 2161 5 0% 0 0 0 60.568775
lobsters (click) 7403461 6361674 3183 48196 64 0% 0 0 0 1617.572034
mail (click) 682842 628185 345 4760 12 0% 0 0 0 139.848981
psych-load (click) 260964 220020 65 600 3 0% 0 0 0 18.844944
railsbench (click) 2462618 2155143 1357 12444 16 0% 0 0 0 365.037421
ruby-lsp (click) 5295993 4726409 3395 49671 397 0% 4 0 0 1519.30584
sequel (click) 456382 408050 16 127 0 0% 0 0 0 4.892195
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.957566
erubi (click) 232785 229083 10 95 0 0% 0 0 0 3.23385
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.056109
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.18503
fluentd (click) 332166 282570 12 104 0 0% 0 0 0 3.437659
graphql (click) 397052 350889 70 658 0 0% 0 0 0 20.201917
graphql-native (click) 362855 319509 42 264 0 0% 0 0 0 8.861614
lee (click) 281180 250100 49 691 0 0% 0 0 0 22.190263
matmul (click) 14070 12895 17 122 0 0% 0 0 0 4.41333
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.706172
nqueens (click) 18613 21105 12 196 0 0% 0 0 0 6.205277
optcarrot (click) 314630 260302 194 4242 32 0% 0 0 0 100.735149
rack (click) 239182 206265 31 304 0 0% 0 0 0 8.934038
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.207507
rubykon (click) 129011 118454 144 1473 3 0% 0 0 0 41.622181
sudoku (click) 44938 40709 26 421 0 0% 0 0 0 13.015369
tinygql (click) 277335 244871 63 773 5 0% 0 0 0 22.310293
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1382.210903
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 492.40488
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.430728
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.801263
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.15951
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.584527
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.857753
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.834812
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.887974
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.110668
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.878847
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.341387

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.