YJIT Benchmarks

Details for Benchmarks at 2025-08-30 03:46:41 UTC

YJIT metrics from the yjit-bench suite using Ruby 01a57bd6cd.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 92.1% faster than CRuby 3.5.0dev
  • 7.4% faster than YJIT 3.3.6
On railsbench it is
  • 100.6% faster than CRuby 3.5.0dev
  • 5.5% 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 87 50 167 50 212
chunky-png 5 31 5 32 50 14 50 28
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 421 5 389 50 598 50 534
liquid-compile 5 407 5 468 50 540 50 715
liquid-render 5 170 5 168 50 408 50 367
lobsters 5 20 5 20 50 10 50 10
mail 5 195 5 181 50 249 50 228
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 138 5 141 50 194 50 217
ruby-lsp 5 142 5 148 50 233 50 246
sequel 5 421 5 430 50 594 50 601
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 83 50 146 50 129
blurhash 5 82 5 87 50 127 50 145
erubi 5 127 5 139 50 99 50 140
etanni 5 90 5 70 50 53 50 35
fannkuchredux 5 52 5 56 50 97 50 94
fluentd 5 62 5 61 50 25 50 27
graphql 5 347 5 445 50 450 50 919
graphql-native 5 51 5 78 50 14 50 62
lee 5 22 5 22 50 10 50 10
matmul 5 51 5 51 50 88 50 91
nbody 5 249 5 264 50 585 50 647
nqueens 5 120 5 127 50 74 50 543
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 187 50 621 50 725
protoboeuf-encode 5 179 5 206 50 328 50 812
rack 5 424 5 431 50 638 50 687
ruby-json 5 83 5 83 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 163 50 149
tinygql 5 41 5 42 50 42 50 47
30k_ifelse 5 28 5 27 50 214 50 184
30k_methods 5 38 5 38 50 481 50 474
attr_accessor 5 157 5 178 50 1720 50 1871
cfunc_itself 5 359 5 363 50 1138 50 1258
fib 5 127 5 141 50 902 50 931
getivar 5 212 5 340 50 2249 50 2417
keyword_args 5 104 5 103 50 1034 50 1243
loops-times 5 24 5 26 50 47 50 56
object-new 5 319 5 299 50 405 50 430
respond_to 5 133 5 138 50 3256 50 3901
ruby-xor 5 245 5 254 50 799 50 1278
setivar 5 361 5 379 50 3187 50 4959
setivar_object 5 353 5 317 50 670 50 567
setivar_young 5 366 5 321 50 702 50 590
str_concat 5 401 5 448 50 979 50 1180
throw 5 1270 5 1128 50 1713 50 1392

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 1380882 203 2570 0 0% 0 0 75.546838
chunky-png (click) 318973 268835 74 1322 1 0% 0 0 39.25836
erubi-rails (click) 1941301 1683598 262 3731 22 0% 0 0 103.971619
hexapdf (click) 1518917 1398842 593 15739 43 0% 0 0 458.055513
liquid-c (click) 529927 482106 114 2228 5 0% 0 0 61.701177
liquid-compile (click) 463082 436761 146 2689 2 0% 0 0 79.435163
liquid-render (click) 647815 527870 131 2946 8 0% 0 0 81.852453
lobsters (click) 8550263 7319105 3119 63578 118 0% 0 0 2147.154949
mail (click) 858506 882944 342 7708 40 0% 0 0 218.396754
psych-load (click) 281008 256495 61 830 2 0% 0 0 24.583949
railsbench (click) 3333178 2980232 1605 19616 47 0% 0 0 562.335738
rubocop (click) 6122649 5311432 3014 63657 157 0% 6 0 1875.220294
ruby-lsp (click) 961454 896204 347 6796 44 0% 1 0 187.974978
sequel (click) 495245 454074 11 119 0 0% 0 0 4.00449
shipit (click) 7575143 6393955 3289 52653 184 0% 0 0 1754.89645
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.645817
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.200249
erubi (click) 247875 230674 5 125 0 0% 0 0 3.891238
etanni (click) 32930 35718 8 114 0 0% 0 0 3.638879
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.251729
fluentd (click) 466157 379167 7 115 0 0% 0 0 3.823521
graphql (click) 402789 367989 73 1920 19 0% 0 0 55.411545
graphql-native (click) 346130 300742 39 532 0 0% 0 0 14.439581
lee (click) 311003 238501 49 1070 0 0% 0 0 31.920614
matmul (click) 11125 4603 8 132 0 0% 0 0 4.255695
nbody (click) 13890 20235 6 238 0 0% 0 0 5.915787
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.534977
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 114.052216
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.808185
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.630998
rack (click) 273604 222957 35 580 0 0% 0 0 15.448859
ruby-json (click) 19776 17761 8 204 0 0% 0 0 5.708571
rubyboy (click) 688772 628006 154 6860 42 0% 0 0 174.707596
rubykon (click) 146229 153926 137 2070 3 0% 0 0 57.172773
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.084036
tinygql (click) 301100 246910 59 1031 5 0% 0 0 27.489843
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1966.912281
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 484.961896
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.072889
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.522014
fib (click) 2659 2995 3 30 0 0% 0 0 1.077518
getivar (click) 3812 6802 3 78 0 0% 0 0 1.948096
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.762247
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.813245
object-new (click) 2406 2818 2 36 0 0% 0 0 1.087295
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.129294
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.72731
setivar (click) 2783 3726 3 46 0 0% 0 0 1.264391
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.411098
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.68477
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.469301
throw (click) 5953 4624 5 53 0 0% 0 0 1.850157

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.