YJIT Benchmarks

Details for Benchmarks at 2025-07-20 04:03:01 UTC

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

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 89.2% faster than CRuby 3.5.0dev
  • 1.8% faster than YJIT 3.3.6
On railsbench it is
  • 103.5% faster than CRuby 3.5.0dev
  • 2.8% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 43 minutes
aarch64 runtime: 3 hours, 55 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 75 50 157 50 156
chunky-png 5 31 5 32 50 14 50 22
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 410 5 396 50 596 50 528
liquid-compile 5 411 5 446 50 543 50 695
liquid-render 5 170 5 166 50 413 50 378
lobsters 5 20 5 19 50 10 50 10
mail 5 193 5 174 50 248 50 195
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 157 5 155 50 247 50 256
ruby-lsp 5 155 5 152 50 237 50 264
sequel 5 425 5 414 50 588 50 579
attr_accessor 5 157 5 202 50 1716 50 1918
binarytrees 5 84 5 78 50 146 50 120
blurhash 5 82 5 86 50 127 50 144
erubi 5 125 5 141 50 89 50 129
etanni 5 91 5 97 50 53 50 67
fannkuchredux 5 52 5 57 50 91 50 96
fluentd 5 62 5 57 50 24 50 27
graphql 5 84 5 82 50 56 50 54
graphql-native 5 47 5 45 50 10 50 14
lee 5 23 5 22 50 10 50 10
matmul 5 51 5 53 50 88 50 75
nbody 5 249 5 246 50 585 50 687
nqueens 5 120 5 127 50 75 50 561
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 173 5 158 50 620 50 731
protoboeuf-encode 5 173 5 201 50 328 50 792
rack 5 584 5 609 50 950 50 1041
ruby-json 5 84 5 81 50 50 50 47
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 140
tinygql 5 36 5 35 50 22 50 32
30k_ifelse 5 28 5 27 50 215 50 185
30k_methods 5 38 5 38 50 482 50 474
cfunc_itself 5 350 5 352 50 1147 50 1259
fib 5 126 5 140 50 901 50 934
getivar 5 214 5 297 50 2255 50 2359
keyword_args 5 104 5 108 50 1042 50 1243
loops-times 5 24 5 25 50 48 50 56
object-new 5 322 5 308 50 405 50 447
respond_to 5 134 5 136 50 3258 50 3885
ruby-xor 5 245 5 245 50 799 50 1284
setivar 5 361 5 338 50 3188 50 4903
setivar_object 5 354 5 306 50 672 50 631
setivar_young 5 368 5 309 50 702 50 616
str_concat 5 396 5 419 50 980 50 1165
throw 5 1271 5 1118 50 1713 50 1432

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) 1551659 1340465 206 2590 0 0% 0 0 75.370785
chunky-png (click) 370062 338281 74 1330 1 0% 0 0 38.785423
erubi-rails (click) 2024374 1750168 262 3694 21 0% 0 0 102.206356
hexapdf (click) 1559183 1362769 593 15633 43 0% 0 0 451.038064
liquid-c (click) 559294 507880 114 2217 5 0% 0 0 61.158977
liquid-compile (click) 492059 460964 146 2690 2 0% 0 0 79.557923
liquid-render (click) 682210 631607 131 2933 8 0% 0 0 81.939115
lobsters (click) 8567104 7203570 3171 63922 118 0% 0 0 2142.78531
mail (click) 858226 809653 342 7227 40 0% 0 0 206.50654
psych-load (click) 334209 294651 61 825 3 0% 0 0 23.953142
railsbench (click) 3436367 2993612 1655 20212 56 0% 0 0 574.494606
rubocop (click) 5953942 5189868 2886 61707 116 0% 4 0 1890.674013
ruby-lsp (click) 926428 874036 305 5956 29 0% 0 0 165.419146
sequel (click) 539657 454771 11 114 0 0% 0 0 3.886795
attr_accessor (click) 151628 144470 3 78 0 0% 0 0 2.030711
binarytrees (click) 154529 151621 6 64 0 0% 0 0 2.529691
blurhash (click) 199546 187957 27 603 0 0% 0 0 17.872859
erubi (click) 296846 281552 5 125 0 0% 0 0 3.938915
etanni (click) 176438 158747 7 98 0 0% 0 0 3.137693
fannkuchredux (click) 171997 177466 3 399 0 0% 0 0 10.948207
fluentd (click) 455879 399587 7 115 0 0% 0 0 3.710993
graphql (click) 494166 475096 66 1035 0 0% 0 0 28.370934
graphql-native (click) 453287 397679 37 399 0 0% 0 0 11.318614
lee (click) 366852 352454 45 1012 0 0% 0 0 30.014736
matmul (click) 158381 157505 8 132 0 0% 0 0 4.120621
nbody (click) 161146 148561 6 238 0 0% 0 0 5.914504
nqueens (click) 169908 181670 5 387 0 0% 0 0 10.625332
optcarrot (click) 472685 467604 188 4740 34 0% 0 0 114.714424
protoboeuf (click) 316842 420076 11 2828 0 0% 0 0 74.635072
protoboeuf-encode (click) 389509 501371 13 1805 0 0% 0 0 46.00656
rack (click) 306601 310506 31 496 0 0% 0 0 12.997282
ruby-json (click) 167436 163492 8 204 0 0% 0 0 5.831934
rubyboy (click) 757520 622852 177 6919 40 0% 0 0 177.363067
rubykon (click) 291907 288730 135 2052 3 0% 0 0 56.348124
sudoku (click) 198834 218477 6 863 0 0% 0 0 23.467004
tinygql (click) 350550 313661 58 980 5 0% 0 0 26.529293
30k_ifelse (click) 6367214 5226662 9259 75432 0 0% 0 0 1948.737331
30k_methods (click) 2381822 1737722 5778 19357 0 0% 0 0 484.308514
cfunc_itself (click) 152383 148865 4 53 0 0% 0 0 1.440122
fib (click) 149915 139513 3 30 0 0% 0 0 1.027211
getivar (click) 151068 143320 3 78 0 0% 0 0 1.869316
keyword_args (click) 153588 149675 5 56 0 0% 0 0 1.721382
loops-times (click) 154228 144531 5 93 0 0% 0 0 2.830478
object-new (click) 149662 147528 2 36 0 0% 0 0 1.056695
respond_to (click) 153707 151529 4 80 0 0% 0 0 2.04227
ruby-xor (click) 153127 153395 4 100 0 0% 0 0 2.685553
setivar (click) 150039 148436 3 46 0 0% 0 0 1.221166
setivar_object (click) 150658 148666 3 49 0 0% 0 0 1.345552
setivar_young (click) 151556 141385 4 63 0 0% 0 0 1.64636
str_concat (click) 153103 151743 6 82 0 0% 0 0 2.408204
throw (click) 153209 149334 5 53 0 0% 0 0 1.773302

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.