YJIT Benchmarks

Details for Benchmarks at 2025-06-17 03:55:31 UTC

YJIT metrics from the yjit-bench suite using Ruby 50c6bd47ef.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 92.5% faster than CRuby 3.5.0dev
  • 5.9% faster than YJIT 3.3.6
On railsbench it is
  • 106.4% faster than CRuby 3.5.0dev
  • 7.5% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 27 minutes
aarch64 runtime: 3 hours, 48 minutes

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.3.6 warmups CRuby 3.3.6 iters CRuby 3.5.0dev warmups CRuby 3.5.0dev iters YJIT 3.3.6 warmups YJIT 3.3.6 iters YJIT 3.5.0dev warmups YJIT 3.5.0dev iters
activerecord 5 83 5 76 50 154 50 167
chunky-png 5 31 5 32 50 15 50 24
erubi-rails 5 15 5 14 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 418 5 417 50 583 50 619
liquid-compile 5 410 5 452 50 539 50 688
liquid-render 5 170 5 173 50 407 50 433
lobsters 5 20 5 19 50 10 50 10
mail 5 190 5 173 50 251 50 207
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 156 5 155 50 250 50 250
ruby-lsp 5 155 5 148 50 207 50 264
sequel 5 415 5 419 50 574 50 582
binarytrees 5 84 5 80 50 146 50 117
blurhash 5 82 5 88 50 127 50 145
erubi 5 115 5 138 50 88 50 148
etanni 5 91 5 100 50 53 50 70
fannkuchredux 5 52 5 57 50 97 50 101
fluentd 5 63 5 62 50 25 50 29
graphql 5 85 5 83 50 57 50 56
graphql-native 5 40 5 47 50 11 50 16
lee 5 23 5 22 50 10 50 10
matmul 5 51 5 53 50 88 50 91
nbody 5 249 5 257 50 585 50 692
nqueens 5 120 5 127 50 75 50 517
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 175 5 159 50 620 50 753
protoboeuf-encode 5 179 5 195 50 327 50 795
rack 5 592 5 612 50 954 50 1061
ruby-json 5 84 5 82 50 50 50 48
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 21 50 10 50 10
sudoku 5 48 5 51 50 163 50 146
tinygql 5 35 5 35 50 22 50 32
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 39 5 38 50 479 50 476
cfunc_itself 5 359 5 366 50 1147 50 1258
fib 5 126 5 143 50 902 50 931
getivar 5 202 5 290 50 2250 50 2384
keyword_args 5 104 5 111 50 1041 50 1243
loops-times 5 24 5 25 50 48 50 54
object-new 5 322 5 355 50 405 50 586
respond_to 5 134 5 134 50 3257 50 3903
ruby-xor 5 245 5 250 50 799 50 1297
setivar 5 361 5 370 50 3193 50 4949
setivar_object 5 353 5 341 50 652 50 589
setivar_young 5 368 5 341 50 702 50 605
str_concat 5 400 5 448 50 978 50 1045
throw 5 1270 5 1305 50 1728 50 1701

Different Ruby configurations want different amounts of warmup. With no JIT, CRuby needs hardly any. YJIT warms up fairly quickly, while some JITs may start slower as they do more advanced compilation.

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) 1517214 1246475 206 2590 0 0% 0 0 76.695726
chunky-png (click) 335176 301117 74 1322 1 0% 0 0 39.248431
erubi-rails (click) 1990759 1777357 263 3657 21 0% 0 0 101.649023
hexapdf (click) 1493921 1346459 593 15626 35 0% 0 0 454.096564
liquid-c (click) 523003 502781 114 2217 5 0% 0 0 62.522448
liquid-compile (click) 432508 369151 146 2687 2 0% 0 0 79.4337
liquid-render (click) 639925 578123 131 2933 8 0% 0 0 81.052432
lobsters (click) 8521034 7188838 3168 63643 118 0% 0 0 2208.619545
mail (click) 824489 731935 342 7227 40 0% 0 0 204.858091
psych-load (click) 287491 238311 61 825 3 0% 0 0 24.38705
railsbench (click) 3376552 2996239 1653 20194 56 0% 0 0 582.918341
rubocop (click) 5905026 5188793 2885 61703 114 0% 4 0 1809.093337
ruby-lsp (click) 891834 762636 305 5956 29 0% 0 0 163.66576
sequel (click) 482839 430828 11 115 0 0% 0 0 3.795363
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.626884
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.388811
erubi (click) 270296 218882 5 125 0 0% 0 0 3.901244
etanni (click) 30806 32125 8 108 0 0% 0 0 3.514672
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.127458
fluentd (click) 421866 354762 7 115 0 0% 0 0 3.811389
graphql (click) 436979 376570 66 1035 0 0% 0 0 30.37605
graphql-native (click) 409395 352180 37 399 0 0% 0 0 11.111337
lee (click) 297384 259295 45 1012 0 0% 0 0 30.405753
matmul (click) 11125 4603 8 132 0 0% 0 0 4.231479
nbody (click) 13890 20235 6 238 0 0% 0 0 5.835443
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.358149
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.831641
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 75.516512
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.677368
rack (click) 257112 230195 31 496 0 0% 0 0 12.997631
ruby-json (click) 24676 22156 8 204 0 0% 0 0 5.823192
rubyboy (click) 715245 644270 177 6919 40 0% 0 0 178.984054
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.361511
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.986393
tinygql (click) 308107 270386 58 977 5 0% 0 0 27.028928
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1964.788428
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 490.188744
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.469627
fib (click) 2659 2995 3 30 0 0% 0 0 1.086252
getivar (click) 3812 6802 3 78 0 0% 0 0 1.87319
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.752968
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.772712
object-new (click) 2406 2818 2 36 0 0% 0 0 1.10984
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.093164
ruby-xor (click) 5863 8622 4 100 0 0% 0 0 2.709888
setivar (click) 2783 3726 3 46 0 0% 0 0 1.207856
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.413614
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.672565
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.485839
throw (click) 5953 4624 5 53 0 0% 0 0 1.825722

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.