YJIT Benchmarks

Details for Benchmarks at 2025-08-23 03:48:42 UTC

YJIT metrics from the yjit-bench suite using Ruby 5b5b5b3af5.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 89.5% faster than CRuby 3.5.0dev
  • 4.7% faster than YJIT 3.3.6
On railsbench it is
  • 100.2% faster than CRuby 3.5.0dev
  • 7.1% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 28 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 85 50 180 50 201
chunky-png 5 31 5 33 50 14 50 25
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 411 5 398 50 597 50 530
liquid-compile 5 407 5 468 50 538 50 670
liquid-render 5 171 5 169 50 406 50 367
lobsters 5 20 5 20 50 10 50 10
mail 5 195 5 178 50 250 50 197
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 140 5 142 50 201 50 215
ruby-lsp 5 144 5 147 50 234 50 243
sequel 5 426 5 429 50 595 50 589
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 80 50 146 50 117
blurhash 5 82 5 85 50 127 50 145
erubi 5 125 5 137 50 100 50 134
etanni 5 90 5 96 50 53 50 68
fannkuchredux 5 52 5 57 50 98 50 96
fluentd 5 62 5 57 50 25 50 26
graphql 5 341 5 443 50 450 50 928
graphql-native 5 51 5 77 50 12 50 62
lee 5 23 5 22 50 10 50 10
matmul 5 51 5 48 50 88 50 91
nbody 5 249 5 240 50 585 50 698
nqueens 5 120 5 128 50 74 50 549
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 185 50 621 50 693
protoboeuf-encode 5 178 5 201 50 328 50 783
rack 5 425 5 430 50 646 50 689
ruby-json 5 83 5 82 50 50 50 49
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 21 50 10 50 10
sudoku 5 48 5 50 50 162 50 149
tinygql 5 40 5 43 50 39 50 48
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 38 5 38 50 479 50 472
attr_accessor 5 157 5 183 50 1723 50 1880
cfunc_itself 5 357 5 352 50 1137 50 1258
fib 5 127 5 144 50 902 50 931
getivar 5 213 5 302 50 2251 50 2394
keyword_args 5 104 5 106 50 1034 50 1243
loops-times 5 24 5 24 50 48 50 55
object-new 5 318 5 297 50 405 50 413
respond_to 5 134 5 122 50 3256 50 3901
ruby-xor 5 245 5 254 50 800 50 1280
setivar 5 361 5 355 50 3190 50 4929
setivar_object 5 353 5 314 50 670 50 600
setivar_young 5 367 5 318 50 702 50 642
str_concat 5 398 5 438 50 981 50 1190
throw 5 1271 5 1128 50 1735 50 1416

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) 1522118 1280418 203 2569 0 0% 0 0 74.787414
chunky-png (click) 314898 255548 74 1322 1 0% 0 0 39.053233
erubi-rails (click) 1911781 1683527 263 3702 22 0% 0 0 101.900062
hexapdf (click) 1509329 1254775 593 15638 43 0% 0 0 456.660993
liquid-c (click) 538347 457406 114 2217 5 0% 0 0 62.984597
liquid-compile (click) 460412 376272 146 2723 2 0% 0 0 80.212544
liquid-render (click) 642877 530466 131 2933 8 0% 0 0 80.793754
lobsters (click) 8466536 7160710 3119 62959 119 0% 0 0 2108.107342
mail (click) 829292 792194 342 7227 40 0% 0 0 207.314138
psych-load (click) 278664 236831 61 830 2 0% 0 0 24.467432
railsbench (click) 3299203 2890578 1605 19527 47 0% 0 0 593.367046
rubocop (click) 6108971 5287565 3011 63542 155 0% 6 0 1842.989241
ruby-lsp (click) 951448 877398 344 6747 43 0% 1 0 188.633184
sequel (click) 492841 449774 11 119 0 0% 0 0 4.088127
shipit (click) 7559510 6324940 3287 52092 181 0% 0 0 1718.040673
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.604511
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.074198
erubi (click) 242806 216941 5 125 0 0% 0 0 3.90594
etanni (click) 30806 32125 8 108 0 0% 0 0 3.61698
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.087123
fluentd (click) 462824 366872 7 115 0 0% 0 0 3.75042
graphql (click) 397637 345770 73 1919 19 0% 0 0 54.731637
graphql-native (click) 343451 305175 39 532 0 0% 0 0 14.196849
lee (click) 305917 273895 49 1070 0 0% 0 0 31.818114
matmul (click) 11125 4603 8 132 0 0% 0 0 4.273807
nbody (click) 13890 20235 6 238 0 0% 0 0 5.844777
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.458186
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.073741
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.592336
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.503513
rack (click) 269299 234426 35 580 0 0% 0 0 15.270101
ruby-json (click) 19782 17637 8 204 0 0% 0 0 5.732291
rubyboy (click) 686367 591928 154 6864 42 0% 0 0 173.628389
rubykon (click) 146229 162118 137 2070 3 0% 0 0 57.124929
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.75057
tinygql (click) 295738 273854 59 1031 5 0% 0 0 27.44727
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1949.28457
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 481.630619
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.058725
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.486418
fib (click) 2659 2995 3 30 0 0% 0 0 1.075214
getivar (click) 3812 6802 3 78 0 0% 0 0 1.936703
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.782011
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.744642
object-new (click) 2406 2818 2 36 0 0% 0 0 1.158805
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.131522
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.758092
setivar (click) 2783 3726 3 46 0 0% 0 0 1.263702
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.394451
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.68883
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.469675
throw (click) 5953 4624 5 53 0 0% 0 0 1.845158

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.