YJIT Benchmarks

Details for Benchmarks at 2025-05-25 03:54:54 UTC

YJIT metrics from the yjit-bench suite using Ruby 87d340f0e1.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 88.5% faster than CRuby 3.5.0dev
  • 5.7% faster than YJIT 3.3.6
On railsbench it is
  • 97.2% faster than CRuby 3.5.0dev
  • 4.7% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 25 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 83 5 84 50 155 50 156
chunky-png 5 31 5 33 50 14 50 24
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 419 5 427 50 586 50 626
liquid-compile 5 411 5 466 50 541 50 701
liquid-render 5 168 5 168 50 409 50 435
lobsters 5 20 5 19 50 10 50 10
mail 5 195 5 176 50 250 50 214
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 157 5 156 50 250 50 263
ruby-lsp 5 156 5 159 50 248 50 265
sequel 5 428 5 426 50 596 50 594
binarytrees 5 84 5 84 50 146 50 133
blurhash 5 82 5 87 50 127 50 145
erubi 5 125 5 146 50 97 50 144
etanni 5 90 5 100 50 53 50 68
fannkuchredux 5 52 5 58 50 97 50 112
fluentd 5 63 5 62 50 25 50 29
graphql 5 85 5 85 50 57 50 58
graphql-native 5 41 5 54 50 10 50 18
lee 5 22 5 24 50 10 50 10
matmul 5 51 5 53 50 88 50 97
nbody 5 249 5 261 50 585 50 688
nqueens 5 120 5 128 50 75 50 556
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 174 5 186 50 621 50 728
protoboeuf-encode 5 177 5 196 50 327 50 791
rack 5 589 5 633 50 959 50 1059
ruby-json 5 84 5 83 50 50 50 48
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 39 50 22 50 33
30k_ifelse 5 28 5 27 50 215 50 185
30k_methods 5 38 5 38 50 482 50 473
cfunc_itself 5 359 5 347 50 1147 50 1258
fib 5 127 5 141 50 903 50 931
getivar 5 213 5 289 50 2254 50 2386
keyword_args 5 104 5 107 50 1041 50 1243
loops-times 5 24 5 27 50 48 50 62
object-new 5 322 5 351 50 405 50 531
respond_to 5 133 5 134 50 3258 50 3898
ruby-xor 5 245 5 259 50 799 50 1296
setivar 5 361 5 609 50 3186 50 5095
setivar_object 5 354 5 447 50 671 50 685
setivar_young 5 368 5 447 50 702 50 726
str_concat 5 399 5 465 50 981 50 1134
throw 5 1267 5 1303 50 1723 50 1721

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) 1494475 1257731 206 2590 0 0% 0 0 75.088071
chunky-png (click) 337943 303415 74 1322 1 0% 0 0 38.848596
erubi-rails (click) 1961031 1717717 258 3541 15 0% 0 0 97.682401
hexapdf (click) 1516066 1366930 593 15611 41 0% 0 0 452.845029
liquid-c (click) 533680 430055 114 2217 5 0% 0 0 60.027622
liquid-compile (click) 454798 405309 146 2679 2 0% 0 0 79.307853
liquid-render (click) 639484 537078 131 2933 8 0% 0 0 81.708704
lobsters (click) 8510033 7202450 3170 63659 120 0% 0 0 2163.430321
mail (click) 791189 768965 342 7228 40 0% 0 0 209.076065
psych-load (click) 293975 243472 61 825 3 0% 0 0 24.751054
railsbench (click) 3394660 2939764 1653 20166 56 0% 0 0 572.932798
rubocop (click) 5926600 5086005 2885 61785 113 0% 4 0 1901.024292
ruby-lsp (click) 892239 853015 305 5955 29 0% 0 0 161.777702
sequel (click) 511293 440903 11 114 0 0% 0 0 3.901186
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.620875
blurhash (click) 52289 51444 27 603 0 0% 0 0 18.17749
erubi (click) 268784 218264 5 125 0 0% 0 0 3.893707
etanni (click) 30806 32125 8 108 0 0% 0 0 3.519189
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.083756
fluentd (click) 389921 350928 7 115 0 0% 0 0 3.830854
graphql (click) 458706 381160 66 1035 0 0% 0 0 28.944343
graphql-native (click) 386449 363533 37 399 0 0% 0 0 11.20634
lee (click) 294257 255020 45 1012 0 0% 0 0 30.608981
matmul (click) 11125 4603 8 132 0 0% 0 0 4.219573
nbody (click) 13890 20235 6 238 0 0% 0 0 5.835741
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.377558
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.435726
protoboeuf (click) 170142 177773 12 2836 0 0% 0 0 75.142805
protoboeuf-encode (click) 243031 283791 14 1815 0 0% 0 0 46.599019
rack (click) 253907 217198 31 496 0 0% 0 0 13.149487
ruby-json (click) 20449 18419 8 204 0 0% 0 0 5.738782
rubyboy (click) 698158 638170 177 6963 40 0% 0 0 174.744259
rubykon (click) 145853 169867 137 2066 3 0% 0 0 56.766526
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.990379
tinygql (click) 288822 268462 58 983 5 0% 0 0 27.32657
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1970.932838
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 491.08015
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.458078
fib (click) 2659 2995 3 30 0 0% 0 0 1.069824
getivar (click) 3812 6802 3 78 0 0% 0 0 1.920564
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.78614
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.746576
object-new (click) 2406 2818 2 36 0 0% 0 0 1.123072
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.065413
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.732413
setivar (click) 2783 3726 3 46 0 0% 0 0 1.245503
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.403094
setivar_young (click) 4297 4867 4 63 0 0% 0 0 1.707712
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.479209
throw (click) 5953 4624 5 53 0 0% 0 0 1.801588

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.