YJIT Benchmarks

Details for Benchmarks at 2025-06-19 03:55:36 UTC

YJIT metrics from the yjit-bench suite using Ruby 912edb4716.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 91.7% faster than CRuby 3.5.0dev
  • 2.9% faster than YJIT 3.3.6
On railsbench it is
  • 100.8% faster than CRuby 3.5.0dev
  • 3.6% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 27 minutes
aarch64 runtime: 3 hours, 45 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 74 50 155 50 161
chunky-png 5 31 5 32 50 15 50 24
erubi-rails 5 16 5 14 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 421 5 413 50 589 50 588
liquid-compile 5 407 5 450 50 544 50 668
liquid-render 5 169 5 166 50 403 50 440
lobsters 5 20 5 19 50 10 50 10
mail 5 189 5 168 50 250 50 188
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 156 5 153 50 251 50 255
ruby-lsp 5 161 5 152 50 257 50 265
sequel 5 428 5 417 50 598 50 570
binarytrees 5 84 5 80 50 146 50 118
blurhash 5 82 5 84 50 127 50 143
erubi 5 75 5 134 50 34 50 149
etanni 5 91 5 100 50 53 50 69
fannkuchredux 5 52 5 57 50 98 50 99
fluentd 5 63 5 61 50 25 50 28
graphql 5 85 5 83 50 58 50 55
graphql-native 5 39 5 46 50 10 50 16
lee 5 22 5 21 50 10 50 10
matmul 5 51 5 48 50 88 50 91
nbody 5 249 5 226 50 585 50 700
nqueens 5 120 5 124 50 75 50 521
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 173 5 159 50 621 50 757
protoboeuf-encode 5 178 5 194 50 328 50 819
rack 5 579 5 603 50 960 50 1050
ruby-json 5 84 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 48 5 51 50 163 50 149
tinygql 5 36 5 34 50 21 50 34
30k_ifelse 5 28 5 27 50 215 50 185
30k_methods 5 38 5 38 50 480 50 470
cfunc_itself 5 358 5 349 50 1137 50 1258
fib 5 127 5 145 50 902 50 931
getivar 5 213 5 292 50 2253 50 2391
keyword_args 5 104 5 98 50 1034 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 133 50 3256 50 3900
ruby-xor 5 245 5 252 50 799 50 1297
setivar 5 361 5 378 50 3176 50 4958
setivar_object 5 353 5 361 50 671 50 617
setivar_young 5 368 5 362 50 702 50 650
str_concat 5 399 5 448 50 983 50 1129
throw 5 1273 5 1249 50 1732 50 1715

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) 1490601 1244976 206 2590 0 0% 0 0 75.575946
chunky-png (click) 301495 288755 74 1322 1 0% 0 0 39.194729
erubi-rails (click) 1985672 1698522 262 3635 21 0% 0 0 107.503176
hexapdf (click) 1511262 1380491 593 15646 41 0% 0 0 450.997058
liquid-c (click) 497329 505520 114 2217 5 0% 0 0 61.622433
liquid-compile (click) 423691 361812 146 2734 2 0% 0 0 80.855997
liquid-render (click) 632876 588532 131 2933 8 0% 0 0 80.444574
lobsters (click) 8533856 7259668 3169 63766 118 0% 0 0 2172.528652
mail (click) 798136 750629 342 7227 40 0% 0 0 204.523257
psych-load (click) 287491 254695 61 825 3 0% 0 0 24.274051
railsbench (click) 3399007 3018536 1653 20249 56 0% 0 0 581.804495
rubocop (click) 5912981 5318699 2885 61706 114 0% 4 0 1835.104279
ruby-lsp (click) 890674 852091 305 5956 29 0% 0 0 167.207632
sequel (click) 481810 421596 11 114 0 0% 0 0 3.882526
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.620584
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.230962
erubi (click) 242095 209606 5 125 0 0% 0 0 3.958708
etanni (click) 30806 32125 8 108 0 0% 0 0 3.494518
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.091592
fluentd (click) 423851 363841 7 115 0 0% 0 0 3.784423
graphql (click) 452955 384097 66 1035 0 0% 0 0 28.680089
graphql-native (click) 386287 371901 37 399 0 0% 0 0 11.063113
lee (click) 313521 281271 45 1012 0 0% 0 0 30.576705
matmul (click) 11125 4603 8 132 0 0% 0 0 4.150011
nbody (click) 13890 20235 6 238 0 0% 0 0 5.805619
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.306901
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 113.065871
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 75.788438
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.772316
rack (click) 245348 211523 31 496 0 0% 0 0 13.134419
ruby-json (click) 24676 22156 8 204 0 0% 0 0 5.885984
rubyboy (click) 702269 624138 177 6962 40 0% 0 0 180.017592
rubykon (click) 147914 164247 137 2092 3 0% 0 0 57.698236
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.986388
tinygql (click) 314248 267410 58 971 5 0% 0 0 26.999912
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1969.932841
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 491.592252
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.492979
fib (click) 2659 2995 3 30 0 0% 0 0 1.070098
getivar (click) 3812 6802 3 78 0 0% 0 0 1.907665
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.778774
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.729735
object-new (click) 2406 2818 2 36 0 0% 0 0 1.130487
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.0962
ruby-xor (click) 5863 8622 4 100 0 0% 0 0 2.69323
setivar (click) 2783 3726 3 46 0 0% 0 0 1.244249
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.387634
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.720002
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.450042
throw (click) 5953 4624 5 53 0 0% 0 0 1.825735

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.