YJIT Benchmarks

Details for Benchmarks at 2025-09-04 03:46:28 UTC

YJIT metrics from the yjit-bench suite using Ruby bbef1772aa.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 93.5% faster than CRuby 3.5.0dev
  • 6.8% faster than YJIT 3.3.6
On railsbench it is
  • 102.2% faster than CRuby 3.5.0dev
  • 7.6% 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 85 5 85 50 178 50 217
chunky-png 5 31 5 33 50 15 50 28
erubi-rails 5 15 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 422 5 388 50 597 50 524
liquid-compile 5 411 5 467 50 549 50 711
liquid-render 5 170 5 170 50 415 50 387
lobsters 5 20 5 20 50 10 50 10
mail 5 195 5 176 50 249 50 224
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 138 5 142 50 206 50 218
ruby-lsp 5 144 5 143 50 231 50 246
sequel 5 434 5 431 50 595 50 600
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 83 50 146 50 131
blurhash 5 82 5 87 50 127 50 145
erubi 5 116 5 141 50 91 50 138
etanni 5 90 5 70 50 53 50 35
fannkuchredux 5 52 5 52 50 98 50 85
fluentd 5 62 5 60 50 25 50 26
graphql 5 338 5 455 50 440 50 920
graphql-native 5 51 5 80 50 13 50 62
lee 5 23 5 23 50 10 50 10
matmul 5 51 5 50 50 88 50 82
nbody 5 249 5 263 50 585 50 702
nqueens 5 120 5 125 50 74 50 543
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 187 50 621 50 754
protoboeuf-encode 5 177 5 204 50 329 50 765
rack 5 422 5 438 50 648 50 694
ruby-json 5 83 5 84 50 50 50 51
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 21 50 10 50 10
sudoku 5 48 5 48 50 162 50 139
tinygql 5 40 5 42 50 43 50 47
30k_ifelse 5 28 5 27 50 216 50 185
30k_methods 5 38 5 38 50 481 50 472
attr_accessor 5 157 5 171 50 1721 50 1855
cfunc_itself 5 357 5 365 50 1138 50 1258
fib 5 127 5 142 50 902 50 931
getivar 5 212 5 331 50 2249 50 2420
keyword_args 5 104 5 103 50 1034 50 1243
loops-times 5 24 5 26 50 48 50 56
object-new 5 319 5 308 50 404 50 462
respond_to 5 133 5 137 50 3255 50 3895
ruby-xor 5 245 5 243 50 800 50 1279
setivar 5 361 5 378 50 3180 50 4957
setivar_object 5 352 5 317 50 669 50 571
setivar_young 5 367 5 319 50 702 50 590
str_concat 5 397 5 448 50 977 50 1209
throw 5 1271 5 1117 50 1717 50 1365

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) 1537103 1380918 203 2570 0 0% 0 0 74.71706
chunky-png (click) 314667 289587 74 1322 1 0% 0 0 38.320612
erubi-rails (click) 1936394 1656203 263 3708 22 0% 0 0 102.090306
hexapdf (click) 1512756 1302117 593 15686 43 0% 0 0 451.354163
liquid-c (click) 542156 445869 114 2228 5 0% 0 0 61.178231
liquid-compile (click) 464735 422944 146 2740 2 0% 0 0 80.887294
liquid-render (click) 645731 606975 131 2946 8 0% 0 0 81.107781
lobsters (click) 8567357 7380560 3118 63766 118 0% 0 0 2149.943957
mail (click) 855153 790198 342 7696 40 0% 0 0 217.378919
psych-load (click) 281332 232176 61 830 2 0% 0 0 25.057616
railsbench (click) 3329341 3017155 1605 19639 47 0% 0 0 559.119129
rubocop (click) 6121063 5326773 3014 63656 157 0% 6 0 1893.260522
ruby-lsp (click) 956286 915893 347 6802 44 0% 1 0 190.86476
sequel (click) 495245 454106 11 119 0 0% 0 0 3.998693
shipit (click) 7647944 6301973 3289 52621 184 0% 0 0 1716.709736
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.656242
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.123386
erubi (click) 246009 212792 5 125 0 0% 0 0 3.947711
etanni (click) 32930 35718 8 114 0 0% 0 0 3.629454
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.079083
fluentd (click) 459496 373611 7 115 0 0% 0 0 3.84263
graphql (click) 402789 367989 73 1920 19 0% 0 0 55.38939
graphql-native (click) 344269 299249 39 532 0 0% 0 0 14.097607
lee (click) 311003 271269 49 1070 0 0% 0 0 31.708571
matmul (click) 11125 4603 8 132 0 0% 0 0 4.16837
nbody (click) 13890 20235 6 238 0 0% 0 0 5.832386
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.449937
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 111.956229
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.570303
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.691239
rack (click) 274678 215732 35 580 0 0% 0 0 15.171466
ruby-json (click) 19776 17761 8 204 0 0% 0 0 5.724557
rubyboy (click) 688927 628080 154 6860 42 0% 0 0 173.27097
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.021067
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.946002
tinygql (click) 301100 246910 59 1031 5 0% 0 0 27.262633
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1951.237013
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 481.112714
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.086107
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.502917
fib (click) 2659 2995 3 30 0 0% 0 0 1.116758
getivar (click) 3812 6802 3 78 0 0% 0 0 1.899386
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.81121
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.732143
object-new (click) 2406 2818 2 36 0 0% 0 0 1.125445
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.13946
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.73047
setivar (click) 2783 3726 3 46 0 0% 0 0 1.291341
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.417894
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.703778
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.473293
throw (click) 5953 4624 5 53 0 0% 0 0 1.841655

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.