YJIT Benchmarks

Details for Benchmarks at 2025-08-19 03:50:43 UTC

YJIT metrics from the yjit-bench suite using Ruby d0d7f55005.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 88.8% faster than CRuby 3.5.0dev
  • 4.8% faster than YJIT 3.3.6
On railsbench it is
  • 98.0% faster than CRuby 3.5.0dev
  • 4.4% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 29 minutes
aarch64 runtime: 3 hours, 49 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 84 5 84 50 173 50 201
chunky-png 5 31 5 33 50 14 50 26
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 418 5 398 50 595 50 534
liquid-compile 5 410 5 472 50 547 50 678
liquid-render 5 170 5 164 50 414 50 373
lobsters 5 19 5 19 50 10 50 10
mail 5 194 5 177 50 249 50 196
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 138 5 140 50 201 50 217
ruby-lsp 5 144 5 147 50 226 50 245
sequel 5 431 5 437 50 574 50 591
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 79 50 146 50 117
blurhash 5 82 5 87 50 127 50 145
erubi 5 125 5 142 50 101 50 139
etanni 5 90 5 95 50 53 50 68
fannkuchredux 5 52 5 57 50 97 50 93
fluentd 5 63 5 62 50 25 50 23
graphql 5 339 5 451 50 428 50 924
graphql-native 5 52 5 77 50 14 50 62
lee 5 22 5 22 50 10 50 10
matmul 5 51 5 50 50 88 50 91
nbody 5 248 5 233 50 585 50 705
nqueens 5 120 5 127 50 74 50 546
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 186 50 621 50 683
protoboeuf-encode 5 178 5 202 50 330 50 804
rack 5 420 5 442 50 647 50 691
ruby-json 5 84 5 83 50 50 50 51
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 149
tinygql 5 41 5 42 50 43 50 48
30k_ifelse 5 28 5 27 50 215 50 183
30k_methods 5 38 5 38 50 480 50 466
attr_accessor 5 157 5 196 50 1722 50 1901
cfunc_itself 5 357 5 369 50 1137 50 1258
fib 5 118 5 145 50 902 50 931
getivar 5 213 5 302 50 2252 50 2338
keyword_args 5 104 5 107 50 1034 50 1242
loops-times 5 23 5 25 50 48 50 56
object-new 5 318 5 301 50 404 50 440
respond_to 5 133 5 137 50 3255 50 3891
ruby-xor 5 245 5 249 50 799 50 1280
setivar 5 361 5 280 50 3182 50 4828
setivar_object 5 354 5 273 50 671 50 588
setivar_young 5 368 5 282 50 702 50 628
str_concat 5 397 5 456 50 979 50 1203
throw 5 1270 5 1137 50 1722 50 1431

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) 1520196 1296277 203 2569 0 0% 0 0 74.24719
chunky-png (click) 303599 276247 74 1322 1 0% 0 0 39.268094
erubi-rails (click) 1912255 1668828 262 3714 22 0% 0 0 102.649439
hexapdf (click) 1512449 1315392 594 15661 43 0% 0 0 455.759927
liquid-c (click) 527110 445283 114 2217 5 0% 0 0 62.475615
liquid-compile (click) 463433 395471 146 2736 2 0% 0 0 82.647739
liquid-render (click) 644593 540292 131 2933 8 0% 0 0 82.774668
lobsters (click) 8551849 7137673 3162 63890 119 0% 0 0 2159.759206
mail (click) 829292 784002 342 7227 40 0% 0 0 208.534731
psych-load (click) 278714 228668 61 830 2 0% 0 0 24.444327
railsbench (click) 3380695 2933816 1668 20503 57 0% 0 0 588.959266
rubocop (click) 6108588 5311849 3011 63541 155 0% 6 0 1862.857186
ruby-lsp (click) 953453 804883 345 6778 44 0% 1 0 190.242015
sequel (click) 492841 425166 11 119 0 0% 0 0 4.129603
shipit (click) 7686764 6475910 3374 53989 209 0% 0 0 1740.852031
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.626995
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.080011
erubi (click) 245269 186231 5 125 0 0% 0 0 3.853582
etanni (click) 30806 32125 8 108 0 0% 0 0 3.560792
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.131556
fluentd (click) 464623 392790 7 115 0 0% 0 0 3.78177
graphql (click) 400105 356020 73 1919 19 0% 0 0 55.177774
graphql-native (click) 343158 337627 39 532 0 0% 0 0 14.210778
lee (click) 308380 300529 49 1070 0 0% 0 0 31.668329
matmul (click) 11125 4603 8 132 0 0% 0 0 4.228816
nbody (click) 13890 20235 6 238 0 0% 0 0 5.809826
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.354807
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 111.729955
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.587648
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.583426
rack (click) 272010 253187 35 580 0 0% 0 0 15.899484
ruby-json (click) 19782 17637 8 204 0 0% 0 0 5.735483
rubyboy (click) 685606 591162 154 6860 42 0% 0 0 173.896534
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.392925
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.957722
tinygql (click) 299072 268629 59 1037 5 0% 0 0 28.46106
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1956.348613
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 482.292028
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.069228
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.482605
fib (click) 2659 2995 3 30 0 0% 0 0 1.053408
getivar (click) 3812 6802 3 78 0 0% 0 0 1.915447
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.739043
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.815024
object-new (click) 2406 2818 2 36 0 0% 0 0 1.086494
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.126156
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.77844
setivar (click) 2783 3726 3 46 0 0% 0 0 1.236717
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.372508
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.742568
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.463962
throw (click) 5953 4624 5 53 0 0% 0 0 1.831032

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.