YJIT Benchmarks

Details for Benchmarks at 2025-06-14 03:52:00 UTC

YJIT metrics from the yjit-bench suite using Ruby 68625a23d6.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 92.8% faster than CRuby 3.5.0dev
  • 4.4% faster than YJIT 3.3.6
On railsbench it is
  • 104.9% faster than CRuby 3.5.0dev
  • 4.8% 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 156 50 162
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 420 5 412 50 564 50 610
liquid-compile 5 406 5 448 50 537 50 692
liquid-render 5 168 5 167 50 409 50 429
lobsters 5 20 5 19 50 10 50 10
mail 5 194 5 172 50 250 50 203
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 252
ruby-lsp 5 161 5 149 50 247 50 263
sequel 5 427 5 415 50 591 50 574
binarytrees 5 84 5 80 50 146 50 118
blurhash 5 82 5 88 50 127 50 145
erubi 5 120 5 140 50 98 50 153
etanni 5 90 5 101 50 53 50 71
fannkuchredux 5 52 5 57 50 98 50 103
fluentd 5 63 5 58 50 25 50 28
graphql 5 85 5 82 50 58 50 54
graphql-native 5 40 5 45 50 10 50 16
lee 5 23 5 21 50 10 50 10
matmul 5 51 5 53 50 88 50 92
nbody 5 249 5 252 50 585 50 688
nqueens 5 116 5 123 50 75 50 525
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 172 5 160 50 621 50 729
protoboeuf-encode 5 178 5 203 50 328 50 787
rack 5 587 5 612 50 957 50 1032
ruby-json 5 84 5 81 50 50 50 47
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 21 50 10 50 10
sudoku 5 48 5 51 50 162 50 150
tinygql 5 36 5 35 50 22 50 32
30k_ifelse 5 28 5 27 50 215 50 185
30k_methods 5 38 5 38 50 479 50 476
cfunc_itself 5 357 5 341 50 1147 50 1258
fib 5 127 5 141 50 903 50 931
getivar 5 212 5 304 50 2254 50 2390
keyword_args 5 104 5 111 50 1042 50 1243
loops-times 5 24 5 25 50 47 50 56
object-new 5 322 5 359 50 405 50 584
respond_to 5 133 5 135 50 3256 50 3898
ruby-xor 5 245 5 246 50 800 50 1295
setivar 5 361 5 375 50 3188 50 4947
setivar_object 5 353 5 345 50 672 50 587
setivar_young 5 368 5 345 50 702 50 605
str_concat 5 396 5 452 50 978 50 1192
throw 5 1271 5 1265 50 1714 50 1708

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) 1524210 1251775 206 2590 0 0% 0 0 75.917047
chunky-png (click) 309600 272065 74 1322 1 0% 0 0 39.461625
erubi-rails (click) 1966519 1778000 262 3626 21 0% 0 0 99.967312
hexapdf (click) 1499759 1311446 593 15623 38 0% 0 0 455.194049
liquid-c (click) 531563 509791 114 2217 5 0% 0 0 61.05313
liquid-compile (click) 431063 368364 146 2702 2 0% 0 0 80.351455
liquid-render (click) 612498 560619 131 2933 8 0% 0 0 81.033528
lobsters (click) 8537367 7162311 3169 63869 118 0% 0 0 2171.680325
mail (click) 821952 763734 342 7229 40 0% 0 0 205.274819
psych-load (click) 278392 239361 61 825 3 0% 0 0 24.387353
railsbench (click) 3382178 2996047 1653 20295 56 0% 0 0 617.280253
rubocop (click) 5893027 5077844 2885 61699 114 0% 4 0 1796.232633
ruby-lsp (click) 849601 691024 305 5956 29 0% 0 0 167.015044
sequel (click) 482789 423352 11 115 0 0% 0 0 4.026151
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.626534
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.338311
erubi (click) 244313 205853 5 125 0 0% 0 0 3.973487
etanni (click) 30806 32125 8 108 0 0% 0 0 3.538309
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.195959
fluentd (click) 423358 331233 7 115 0 0% 0 0 3.895284
graphql (click) 434746 382543 66 1035 0 0% 0 0 28.457421
graphql-native (click) 388456 331878 37 399 0 0% 0 0 11.070785
lee (click) 295388 239071 45 1012 0 0% 0 0 30.670277
matmul (click) 11125 4603 8 132 0 0% 0 0 4.230291
nbody (click) 13890 20235 6 238 0 0% 0 0 5.89406
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.342183
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.148845
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 75.255125
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.868265
rack (click) 261904 226678 31 496 0 0% 0 0 13.106127
ruby-json (click) 24676 22156 8 204 0 0% 0 0 5.83852
rubyboy (click) 696959 629381 177 6964 40 0% 0 0 181.843824
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.098539
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.017633
tinygql (click) 289537 238295 58 977 5 0% 0 0 26.747311
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1973.237535
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 489.950224
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.462696
fib (click) 2659 2995 3 30 0 0% 0 0 1.089604
getivar (click) 3812 6802 3 78 0 0% 0 0 1.917981
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.786073
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.804978
object-new (click) 2406 2818 2 36 0 0% 0 0 1.116759
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.105751
ruby-xor (click) 5863 8622 4 100 0 0% 0 0 2.710419
setivar (click) 2783 3726 3 46 0 0% 0 0 1.244955
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.399212
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.691713
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.493598
throw (click) 5953 4624 5 53 0 0% 0 0 1.820058

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.