YJIT Benchmarks

Details for Benchmarks at 2025-08-29 03:47:58 UTC

YJIT metrics from the yjit-bench suite using Ruby 1f2a102f38.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 92.6% faster than CRuby 3.5.0dev
  • 6.4% faster than YJIT 3.3.6
On railsbench it is
  • 105.4% faster than CRuby 3.5.0dev
  • 4.2% 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 85 5 86 50 166 50 219
chunky-png 5 31 5 33 50 14 50 28
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 419 5 383 50 598 50 544
liquid-compile 5 412 5 458 50 550 50 715
liquid-render 5 172 5 168 50 414 50 378
lobsters 5 20 5 20 50 10 50 10
mail 5 187 5 181 50 233 50 224
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 137 5 139 50 205 50 218
ruby-lsp 5 139 5 145 50 229 50 247
sequel 5 432 5 429 50 594 50 596
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 83 50 146 50 129
blurhash 5 82 5 82 50 127 50 145
erubi 5 116 5 134 50 87 50 140
etanni 5 90 5 69 50 53 50 35
fannkuchredux 5 52 5 57 50 97 50 93
fluentd 5 62 5 60 50 25 50 20
graphql 5 335 5 447 50 468 50 919
graphql-native 5 51 5 78 50 14 50 59
lee 5 22 5 22 50 10 50 10
matmul 5 51 5 52 50 88 50 92
nbody 5 249 5 271 50 585 50 699
nqueens 5 120 5 128 50 74 50 545
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 180 5 183 50 621 50 744
protoboeuf-encode 5 179 5 204 50 326 50 815
rack 5 413 5 441 50 604 50 702
ruby-json 5 83 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 148
tinygql 5 41 5 41 50 41 50 47
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 38 5 38 50 478 50 475
attr_accessor 5 157 5 194 50 1723 50 1894
cfunc_itself 5 358 5 367 50 1138 50 1258
fib 5 127 5 145 50 901 50 931
getivar 5 212 5 316 50 2249 50 2397
keyword_args 5 104 5 103 50 1034 50 1243
loops-times 5 24 5 25 50 48 50 56
object-new 5 318 5 299 50 405 50 423
respond_to 5 133 5 137 50 3256 50 3896
ruby-xor 5 246 5 250 50 755 50 1277
setivar 5 361 5 381 50 3179 50 4957
setivar_object 5 353 5 319 50 671 50 568
setivar_young 5 367 5 322 50 703 50 589
str_concat 5 401 5 446 50 977 50 1173
throw 5 1268 5 1139 50 1743 50 1418

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) 1536824 1380562 203 2570 0 0% 0 0 75.132205
chunky-png (click) 319776 292791 74 1322 1 0% 0 0 39.038151
erubi-rails (click) 1933641 1638454 263 3729 22 0% 0 0 104.0951
hexapdf (click) 1513674 1310845 593 15678 43 0% 0 0 449.627564
liquid-c (click) 541618 453520 114 2228 5 0% 0 0 61.390355
liquid-compile (click) 465812 439375 146 2723 2 0% 0 0 81.580973
liquid-render (click) 648108 503590 131 2946 8 0% 0 0 81.442196
lobsters (click) 8545185 7250336 3118 63475 118 0% 0 0 2138.457363
mail (click) 856449 815671 342 7696 40 0% 0 0 219.196026
psych-load (click) 280213 214796 61 830 2 0% 0 0 24.632243
railsbench (click) 3331264 2946269 1605 19560 47 0% 0 0 560.937288
rubocop (click) 6118987 5381908 3014 63656 157 0% 6 0 1862.550399
ruby-lsp (click) 960390 919233 347 6802 44 0% 1 0 189.229156
sequel (click) 494991 404657 11 119 0 0% 0 0 4.343412
shipit (click) 7658529 6433415 3290 52737 184 0% 0 0 1715.554611
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.647435
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.251958
erubi (click) 249413 230870 5 125 0 0% 0 0 3.901972
etanni (click) 32930 35718 8 114 0 0% 0 0 3.687011
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.152807
fluentd (click) 466495 420411 7 115 0 0% 0 0 3.878062
graphql (click) 402496 359501 73 1920 19 0% 0 0 55.005901
graphql-native (click) 345558 259218 39 532 0 0% 0 0 14.219599
lee (click) 311003 246693 49 1070 0 0% 0 0 32.080709
matmul (click) 11125 4603 8 132 0 0% 0 0 4.192701
nbody (click) 13890 20235 6 238 0 0% 0 0 5.92268
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.53062
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 113.571303
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.275411
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.565979
rack (click) 274106 223432 35 580 0 0% 0 0 15.568888
ruby-json (click) 19776 17761 8 204 0 0% 0 0 5.724037
rubyboy (click) 688813 619843 154 6860 42 0% 0 0 173.403563
rubykon (click) 146229 153926 137 2070 3 0% 0 0 57.20516
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.965465
tinygql (click) 300571 270993 59 1025 5 0% 0 0 27.6001
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1953.879626
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 482.440684
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.052671
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.50745
fib (click) 2659 2995 3 30 0 0% 0 0 1.11378
getivar (click) 3812 6802 3 78 0 0% 0 0 1.935628
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.791328
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.77108
object-new (click) 2406 2818 2 36 0 0% 0 0 1.069106
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.14474
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.73219
setivar (click) 2783 3726 3 46 0 0% 0 0 1.23153
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.398692
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.73805
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.447399
throw (click) 5953 4624 5 53 0 0% 0 0 1.804128

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.