YJIT Benchmarks

Details for Benchmarks at 2025-08-25 03:54:52 UTC

YJIT metrics from the yjit-bench suite using Ruby 18c828d792.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 91.6% faster than CRuby 3.5.0dev
  • 5.2% faster than YJIT 3.3.6
On railsbench it is
  • 103.6% faster than CRuby 3.5.0dev
  • 6.3% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 28 minutes
aarch64 runtime: 3 hours, 48 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 85 50 181 50 207
chunky-png 5 31 5 33 50 15 50 26
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 422 5 402 50 595 50 529
liquid-compile 5 414 5 469 50 552 50 679
liquid-render 5 169 5 166 50 407 50 386
lobsters 5 20 5 20 50 10 50 10
mail 5 195 5 178 50 249 50 202
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 141 5 141 50 211 50 216
ruby-lsp 5 148 5 147 50 227 50 247
sequel 5 420 5 429 50 597 50 589
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 80 50 146 50 117
blurhash 5 82 5 85 50 127 50 145
erubi 5 126 5 138 50 28 50 131
etanni 5 90 5 96 50 53 50 67
fannkuchredux 5 52 5 57 50 97 50 96
fluentd 5 62 5 61 50 25 50 27
graphql 5 340 5 451 50 462 50 918
graphql-native 5 50 5 82 50 14 50 62
lee 5 22 5 21 50 10 50 10
matmul 5 51 5 48 50 88 50 92
nbody 5 248 5 240 50 585 50 698
nqueens 5 120 5 128 50 74 50 550
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 186 50 621 50 693
protoboeuf-encode 5 179 5 201 50 328 50 783
rack 5 427 5 429 50 606 50 691
ruby-json 5 83 5 84 50 50 50 50
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 149
tinygql 5 41 5 43 50 41 50 48
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 39 5 38 50 482 50 471
attr_accessor 5 157 5 182 50 1723 50 1880
cfunc_itself 5 358 5 352 50 1137 50 1258
fib 5 127 5 144 50 902 50 931
getivar 5 213 5 307 50 2251 50 2402
keyword_args 5 104 5 106 50 1034 50 1243
loops-times 5 24 5 24 50 48 50 55
object-new 5 318 5 298 50 404 50 411
respond_to 5 134 5 123 50 3255 50 3900
ruby-xor 5 245 5 254 50 799 50 1280
setivar 5 361 5 355 50 3193 50 4936
setivar_object 5 353 5 314 50 672 50 600
setivar_young 5 367 5 318 50 703 50 642
str_concat 5 397 5 436 50 978 50 1195
throw 5 1271 5 1122 50 1739 50 1414

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) 1520196 1296308 203 2569 0 0% 0 0 74.198225
chunky-png (click) 303599 276247 74 1322 1 0% 0 0 38.215103
erubi-rails (click) 1915117 1631926 262 3720 22 0% 0 0 103.117207
hexapdf (click) 1505714 1325157 593 15637 42 0% 0 0 452.483129
liquid-c (click) 538595 515046 114 2222 5 0% 0 0 62.992807
liquid-compile (click) 461450 393375 146 2714 2 0% 0 0 81.010921
liquid-render (click) 644577 548132 131 2933 8 0% 0 0 81.316257
lobsters (click) 8479220 7200239 3119 63241 118 0% 0 0 2128.787175
mail (click) 829971 793027 342 7237 40 0% 0 0 211.077882
psych-load (click) 278709 245052 61 830 2 0% 0 0 24.520592
railsbench (click) 3301196 2852207 1605 19568 47 0% 0 0 596.231042
rubocop (click) 6108821 5254065 3011 63533 155 0% 6 0 1862.405131
ruby-lsp (click) 953769 813838 345 6770 44 0% 1 0 189.152409
sequel (click) 492548 433010 11 119 0 0% 0 0 4.06083
shipit (click) 7559940 6301103 3288 52096 181 0% 0 0 1693.917481
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.617398
blurhash (click) 52295 51444 27 603 0 0% 0 0 17.989325
erubi (click) 247838 203697 5 125 0 0% 0 0 3.813315
etanni (click) 30806 32125 8 108 0 0% 0 0 3.628152
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.091702
fluentd (click) 462030 382398 7 115 0 0% 0 0 3.762561
graphql (click) 400507 389149 73 1919 19 0% 0 0 55.186541
graphql-native (click) 343451 296983 39 532 0 0% 0 0 14.100706
lee (click) 308380 300529 49 1070 0 0% 0 0 31.757617
matmul (click) 11125 4603 8 132 0 0% 0 0 4.244084
nbody (click) 13890 20235 6 238 0 0% 0 0 5.846781
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.588413
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.025298
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.339896
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.653192
rack (click) 272060 245049 35 580 0 0% 0 0 15.335252
ruby-json (click) 19782 17637 8 204 0 0% 0 0 5.745556
rubyboy (click) 684960 582409 154 6858 42 0% 0 0 174.248503
rubykon (click) 146229 162118 137 2070 3 0% 0 0 56.932271
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.735131
tinygql (click) 297672 267356 59 1031 5 0% 0 0 28.302177
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1952.372601
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 484.109385
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.075786
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.483006
fib (click) 2659 2995 3 30 0 0% 0 0 1.057457
getivar (click) 3812 6802 3 78 0 0% 0 0 1.954875
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.77792
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.783371
object-new (click) 2406 2818 2 36 0 0% 0 0 1.12368
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.101227
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.784332
setivar (click) 2783 3726 3 46 0 0% 0 0 1.254651
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.430785
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.755321
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.448057
throw (click) 5953 4624 5 53 0 0% 0 0 1.840518

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.