YJIT Benchmarks

Details for Benchmarks at 2025-06-20 03:54:47 UTC

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

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 91.2% faster than CRuby 3.5.0dev
  • 3.5% faster than YJIT 3.3.6
On railsbench it is
  • 103.5% faster than CRuby 3.5.0dev
  • 4.2% 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 75 50 156 50 152
chunky-png 5 31 5 32 50 14 50 24
erubi-rails 5 15 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 419 5 413 50 587 50 612
liquid-compile 5 406 5 450 50 541 50 691
liquid-render 5 170 5 167 50 403 50 435
lobsters 5 19 5 19 50 10 50 10
mail 5 190 5 173 50 250 50 189
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 156 5 154 50 247 50 254
ruby-lsp 5 156 5 151 50 242 50 262
sequel 5 427 5 419 50 596 50 578
binarytrees 5 84 5 80 50 146 50 118
blurhash 5 82 5 84 50 127 50 145
erubi 5 114 5 134 50 98 50 147
etanni 5 90 5 101 50 53 50 69
fannkuchredux 5 52 5 57 50 97 50 98
fluentd 5 63 5 60 50 26 50 26
graphql 5 85 5 83 50 58 50 55
graphql-native 5 49 5 45 50 10 50 17
lee 5 22 5 21 50 10 50 10
matmul 5 51 5 48 50 88 50 90
nbody 5 249 5 226 50 585 50 700
nqueens 5 120 5 124 50 75 50 522
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 174 5 158 50 620 50 757
protoboeuf-encode 5 178 5 198 50 326 50 805
rack 5 570 5 609 50 960 50 1044
ruby-json 5 84 5 83 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 51 50 163 50 149
tinygql 5 35 5 36 50 22 50 34
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 39 5 38 50 480 50 475
cfunc_itself 5 358 5 348 50 1147 50 1258
fib 5 127 5 145 50 902 50 931
getivar 5 213 5 291 50 2251 50 2392
keyword_args 5 104 5 98 50 1041 50 1243
loops-times 5 24 5 25 50 48 50 56
object-new 5 322 5 354 50 405 50 601
respond_to 5 134 5 134 50 3256 50 3902
ruby-xor 5 245 5 252 50 799 50 1296
setivar 5 361 5 378 50 3185 50 4955
setivar_object 5 354 5 362 50 672 50 616
setivar_young 5 368 5 362 50 701 50 645
str_concat 5 401 5 448 50 982 50 1122
throw 5 1266 5 1250 50 1719 50 1718

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) 1522570 1283067 206 2590 0 0% 0 0 75.123459
chunky-png (click) 300729 277756 74 1330 1 0% 0 0 39.909027
erubi-rails (click) 1988046 1702105 263 3675 21 0% 0 0 102.189728
hexapdf (click) 1518519 1358942 593 15611 40 0% 0 0 455.561886
liquid-c (click) 533085 469850 114 2217 5 0% 0 0 61.193332
liquid-compile (click) 459809 418160 146 2750 2 0% 0 0 83.799745
liquid-render (click) 639323 601416 131 2933 8 0% 0 0 81.17431
lobsters (click) 8537727 7292755 3168 63825 118 0% 0 0 2162.636925
mail (click) 825547 814855 342 7227 40 0% 0 0 210.71916
psych-load (click) 260588 228586 61 825 3 0% 0 0 24.309154
railsbench (click) 3374527 3052143 1653 20166 56 0% 0 0 582.084178
rubocop (click) 5920742 5110979 2885 61699 114 0% 4 0 1819.348517
ruby-lsp (click) 851575 765612 305 5956 29 0% 0 0 167.905484
sequel (click) 503953 475923 11 114 0 0% 0 0 4.121653
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.618343
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.291329
erubi (click) 270395 210230 5 125 0 0% 0 0 3.9349
etanni (click) 30806 32125 8 108 0 0% 0 0 3.515864
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.158728
fluentd (click) 422853 355202 7 115 0 0% 0 0 3.781533
graphql (click) 456544 428103 66 1035 0 0% 0 0 28.863946
graphql-native (click) 414277 363498 37 399 0 0% 0 0 11.418677
lee (click) 322950 304860 45 1012 0 0% 0 0 30.649085
matmul (click) 11125 4603 8 132 0 0% 0 0 4.222882
nbody (click) 13890 20235 6 238 0 0% 0 0 5.781982
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.379271
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 113.305362
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 75.391363
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.98814
rack (click) 282678 251168 31 496 0 0% 0 0 12.87697
ruby-json (click) 24676 22156 8 204 0 0% 0 0 5.855095
rubyboy (click) 728808 688620 177 6919 40 0% 0 0 179.463779
rubykon (click) 147914 164247 137 2092 3 0% 0 0 57.959751
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.981336
tinygql (click) 315534 284262 58 977 5 0% 0 0 27.072948
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1964.007054
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 493.081129
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.461928
fib (click) 2659 2995 3 30 0 0% 0 0 1.091333
getivar (click) 3812 6802 3 78 0 0% 0 0 1.951838
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.756888
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.740174
object-new (click) 2406 2818 2 36 0 0% 0 0 1.109934
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.097307
ruby-xor (click) 5863 8622 4 100 0 0% 0 0 2.720515
setivar (click) 2783 3726 3 46 0 0% 0 0 1.248502
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.387458
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.699438
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.478812
throw (click) 5953 4624 5 53 0 0% 0 0 1.827243

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.