YJIT Benchmarks

Details for Benchmarks at 2025-06-03 03:54:42 UTC

YJIT metrics from the yjit-bench suite using Ruby 6f4eaa100f.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 88.7% faster than CRuby 3.5.0dev
  • 4.8% faster than YJIT 3.3.6
On railsbench it is
  • 101.1% faster than CRuby 3.5.0dev
  • 5.1% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 26 minutes
aarch64 runtime: 3 hours, 44 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 83 50 157 50 151
chunky-png 5 31 5 32 50 15 50 24
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 407 5 422 50 586 50 621
liquid-compile 5 409 5 460 50 541 50 701
liquid-render 5 168 5 170 50 409 50 431
lobsters 5 20 5 19 50 10 50 10
mail 5 195 5 176 50 251 50 222
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 156 5 155 50 251 50 264
ruby-lsp 5 158 5 157 50 255 50 250
sequel 5 427 5 422 50 597 50 588
binarytrees 5 84 5 80 50 146 50 134
blurhash 5 82 5 86 50 127 50 145
erubi 5 116 5 141 50 97 50 143
etanni 5 91 5 99 50 53 50 71
fannkuchredux 5 52 5 58 50 97 50 107
fluentd 5 63 5 60 50 26 50 30
graphql 5 85 5 83 50 57 50 58
graphql-native 5 40 5 56 50 10 50 18
lee 5 22 5 24 50 10 50 10
matmul 5 51 5 51 50 88 50 96
nbody 5 248 5 250 50 585 50 618
nqueens 5 120 5 127 50 75 50 549
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 174 5 187 50 620 50 754
protoboeuf-encode 5 177 5 208 50 326 50 792
rack 5 576 5 633 50 955 50 1039
ruby-json 5 83 5 82 50 50 50 49
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 21 50 10 50 10
sudoku 5 47 5 51 50 163 50 158
tinygql 5 35 5 38 50 22 50 31
30k_ifelse 5 28 5 27 50 214 50 185
30k_methods 5 39 5 38 50 478 50 472
cfunc_itself 5 360 5 347 50 1146 50 1258
fib 5 127 5 139 50 902 50 931
getivar 5 213 5 306 50 2249 50 2396
keyword_args 5 104 5 108 50 1042 50 1243
loops-times 5 24 5 25 50 48 50 58
object-new 5 322 5 352 50 405 50 560
respond_to 5 133 5 130 50 3256 50 3900
ruby-xor 5 245 5 247 50 799 50 1294
setivar 5 361 5 587 50 3192 50 5086
setivar_object 5 354 5 445 50 671 50 743
setivar_young 5 367 5 445 50 703 50 755
str_concat 5 399 5 450 50 981 50 1129
throw 5 1272 5 1296 50 1711 50 1720

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) 1524588 1317700 206 2590 0 0% 0 0 75.313585
chunky-png (click) 331509 290447 74 1322 1 0% 0 0 38.903649
erubi-rails (click) 1946836 1722473 263 3642 21 0% 0 0 101.740341
hexapdf (click) 1515536 1390050 593 15607 40 0% 0 0 450.354282
liquid-c (click) 531707 460832 114 2232 5 0% 0 0 63.144015
liquid-compile (click) 456704 422606 146 2694 2 0% 0 0 79.878472
liquid-render (click) 639819 593493 131 2933 8 0% 0 0 80.604063
lobsters (click) 8548202 7196885 3172 63913 118 0% 0 0 2178.902552
mail (click) 822809 788328 342 7227 40 0% 0 0 207.565492
psych-load (click) 282746 257821 61 825 3 0% 0 0 24.918066
railsbench (click) 3400583 3034644 1653 20166 56 0% 0 0 578.112073
rubocop (click) 5898752 4976294 2885 61735 113 0% 4 0 1814.710722
ruby-lsp (click) 889891 826788 305 5956 29 0% 0 0 168.052526
sequel (click) 503693 457121 11 118 0 0% 0 0 4.271398
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.602255
blurhash (click) 52289 51444 27 603 0 0% 0 0 18.173124
erubi (click) 272071 220202 5 125 0 0% 0 0 3.876327
etanni (click) 30806 32125 8 108 0 0% 0 0 3.481841
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.081771
fluentd (click) 414217 364893 7 115 0 0% 0 0 3.875849
graphql (click) 436934 362174 66 1035 0 0% 0 0 28.714513
graphql-native (click) 410532 385983 37 399 0 0% 0 0 11.481501
lee (click) 320516 286795 45 1012 0 0% 0 0 30.568874
matmul (click) 11125 4603 8 132 0 0% 0 0 4.227851
nbody (click) 13890 20235 6 238 0 0% 0 0 5.835315
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.269636
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.905703
protoboeuf (click) 170142 177773 12 2836 0 0% 0 0 75.524647
protoboeuf-encode (click) 243031 283791 14 1815 0 0% 0 0 46.825519
rack (click) 279028 256479 31 496 0 0% 0 0 13.077726
ruby-json (click) 24634 22156 8 204 0 0% 0 0 5.888515
rubyboy (click) 729026 672597 177 6919 40 0% 0 0 174.509723
rubykon (click) 145853 169867 137 2066 3 0% 0 0 56.563928
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.106367
tinygql (click) 308606 253512 58 977 5 0% 0 0 26.975286
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1961.480468
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 490.061262
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.478546
fib (click) 2659 2995 3 30 0 0% 0 0 1.079772
getivar (click) 3812 6802 3 78 0 0% 0 0 1.927452
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.780239
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.765208
object-new (click) 2406 2818 2 36 0 0% 0 0 1.117488
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.08292
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.720999
setivar (click) 2783 3726 3 46 0 0% 0 0 1.222795
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.417265
setivar_young (click) 4297 4867 4 63 0 0% 0 0 1.660489
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.475094
throw (click) 5953 4624 5 53 0 0% 0 0 1.818457

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.