YJIT Benchmarks

Details for Benchmarks at 2025-06-02 03:57:19 UTC

YJIT metrics from the yjit-bench suite using Ruby 20d7db8cba.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 87.6% faster than CRuby 3.5.0dev
  • 5.4% faster than YJIT 3.3.6
On railsbench it is
  • 100.3% faster than CRuby 3.5.0dev
  • 6.1% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 26 minutes
aarch64 runtime: 3 hours, 47 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 82 5 84 50 157 50 170
chunky-png 5 31 5 32 50 14 50 23
erubi-rails 5 16 5 14 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 420 5 422 50 564 50 595
liquid-compile 5 408 5 464 50 574 50 699
liquid-render 5 170 5 169 50 403 50 436
lobsters 5 19 5 19 50 10 50 10
mail 5 194 5 178 50 250 50 205
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 156 5 156 50 248 50 262
ruby-lsp 5 161 5 162 50 247 50 264
sequel 5 428 5 428 50 570 50 587
binarytrees 5 84 5 81 50 146 50 134
blurhash 5 82 5 87 50 127 50 145
erubi 5 124 5 133 50 99 50 146
etanni 5 90 5 97 50 53 50 68
fannkuchredux 5 51 5 52 50 98 50 109
fluentd 5 63 5 58 50 26 50 27
graphql 5 85 5 81 50 57 50 52
graphql-native 5 40 5 55 50 10 50 17
lee 5 23 5 24 50 10 50 10
matmul 5 51 5 53 50 88 50 96
nbody 5 249 5 257 50 585 50 688
nqueens 5 120 5 127 50 75 50 556
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 173 5 188 50 621 50 756
protoboeuf-encode 5 179 5 187 50 327 50 794
rack 5 585 5 642 50 958 50 1050
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 159
tinygql 5 36 5 38 50 22 50 32
30k_ifelse 5 28 5 27 50 216 50 184
30k_methods 5 38 5 39 50 480 50 470
cfunc_itself 5 358 5 355 50 1147 50 1258
fib 5 127 5 140 50 902 50 931
getivar 5 213 5 308 50 2251 50 2398
keyword_args 5 104 5 108 50 1041 50 1243
loops-times 5 24 5 26 50 48 50 60
object-new 5 322 5 356 50 405 50 560
respond_to 5 133 5 130 50 3257 50 3900
ruby-xor 5 245 5 252 50 800 50 1297
setivar 5 361 5 622 50 3177 50 5099
setivar_object 5 354 5 445 50 671 50 743
setivar_young 5 366 5 444 50 702 50 753
str_concat 5 400 5 449 50 978 50 1127
throw 5 1272 5 1282 50 1720 50 1701

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) 1505270 1244607 206 2590 0 0% 0 0 75.540773
chunky-png (click) 317810 295715 74 1322 1 0% 0 0 38.64166
erubi-rails (click) 1990917 1712722 263 3697 21 0% 0 0 102.878005
hexapdf (click) 1489063 1317042 593 15610 40 0% 0 0 453.605574
liquid-c (click) 501456 441366 114 2217 5 0% 0 0 60.373798
liquid-compile (click) 426176 402878 146 2742 2 0% 0 0 83.762409
liquid-render (click) 622602 564007 131 2933 8 0% 0 0 81.365164
lobsters (click) 8522571 7093805 3171 63774 118 0% 0 0 2185.614506
mail (click) 788795 734696 342 7227 40 0% 0 0 209.378651
psych-load (click) 294475 260211 61 825 3 0% 0 0 24.559057
railsbench (click) 3379814 3042310 1653 20227 56 0% 0 0 592.116456
rubocop (click) 5897277 4966425 2885 61746 113 0% 4 0 1823.638477
ruby-lsp (click) 851308 749340 305 5956 29 0% 0 0 163.010338
sequel (click) 473796 441058 11 115 0 0% 0 0 4.145822
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.629974
blurhash (click) 52289 51444 27 603 0 0% 0 0 18.346353
erubi (click) 252533 237715 5 125 0 0% 0 0 3.918337
etanni (click) 30806 32125 8 108 0 0% 0 0 3.505538
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.082563
fluentd (click) 394495 331092 7 115 0 0% 0 0 3.811271
graphql (click) 442452 384180 66 1035 0 0% 0 0 28.151988
graphql-native (click) 396383 358166 37 399 0 0% 0 0 11.025128
lee (click) 294212 254991 45 1012 0 0% 0 0 30.511722
matmul (click) 11125 4603 8 132 0 0% 0 0 4.250784
nbody (click) 13890 20235 6 238 0 0% 0 0 5.894605
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.355001
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 114.222907
protoboeuf (click) 170142 177773 12 2836 0 0% 0 0 76.080821
protoboeuf-encode (click) 243031 283791 14 1815 0 0% 0 0 47.105009
rack (click) 246548 226463 31 496 0 0% 0 0 13.945097
ruby-json (click) 24673 22156 8 204 0 0% 0 0 5.791009
rubyboy (click) 702630 666853 177 6963 40 0% 0 0 175.865442
rubykon (click) 147890 164247 137 2092 3 0% 0 0 57.916352
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.129925
tinygql (click) 283319 246298 58 977 5 0% 0 0 27.10099
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1981.044899
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 488.128233
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.502572
fib (click) 2659 2995 3 30 0 0% 0 0 1.09834
getivar (click) 3812 6802 3 78 0 0% 0 0 1.898732
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.787404
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.752884
object-new (click) 2406 2818 2 36 0 0% 0 0 1.115675
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.122923
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.725174
setivar (click) 2783 3726 3 46 0 0% 0 0 1.25139
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.404193
setivar_young (click) 4297 4867 4 63 0 0% 0 0 1.697094
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.521718
throw (click) 5953 4624 5 53 0 0% 0 0 1.805618

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.