YJIT Benchmarks

Details for Benchmarks at 2025-09-02 03:49:24 UTC

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

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 93.6% faster than CRuby 3.5.0dev
  • 8.2% faster than YJIT 3.3.6
On railsbench it is
  • 102.0% faster than CRuby 3.5.0dev
  • 9.0% 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 86 50 181 50 216
chunky-png 5 31 5 33 50 15 50 29
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 406 5 389 50 574 50 564
liquid-compile 5 411 5 465 50 550 50 717
liquid-render 5 171 5 169 50 405 50 382
lobsters 5 20 5 20 50 10 50 10
mail 5 188 5 183 50 250 50 224
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 140 5 141 50 200 50 216
ruby-lsp 5 142 5 146 50 220 50 246
sequel 5 430 5 434 50 594 50 597
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 115 5 137 50 88 50 141
etanni 5 90 5 69 50 53 50 36
fannkuchredux 5 52 5 57 50 97 50 95
fluentd 5 62 5 62 50 24 50 25
graphql 5 334 5 458 50 465 50 916
graphql-native 5 52 5 83 50 12 50 64
lee 5 23 5 23 50 10 50 10
matmul 5 51 5 51 50 88 50 92
nbody 5 248 5 264 50 585 50 701
nqueens 5 120 5 127 50 74 50 544
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 187 50 621 50 761
protoboeuf-encode 5 178 5 203 50 326 50 826
rack 5 414 5 436 50 646 50 689
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 163 50 149
tinygql 5 41 5 43 50 41 50 48
30k_ifelse 5 28 5 27 50 214 50 184
30k_methods 5 38 5 38 50 481 50 473
attr_accessor 5 157 5 195 50 1718 50 1902
cfunc_itself 5 358 5 363 50 1147 50 1258
fib 5 127 5 142 50 902 50 931
getivar 5 212 5 312 50 2249 50 2409
keyword_args 5 104 5 107 50 1042 50 1243
loops-times 5 24 5 26 50 48 50 56
object-new 5 318 5 308 50 404 50 458
respond_to 5 133 5 139 50 3255 50 3901
ruby-xor 5 245 5 251 50 800 50 1278
setivar 5 365 5 381 50 3185 50 4959
setivar_object 5 353 5 319 50 671 50 568
setivar_young 5 367 5 323 50 703 50 590
str_concat 5 400 5 455 50 979 50 1202
throw 5 1269 5 1126 50 1736 50 1379

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) 1536810 1380566 203 2570 0 0% 0 0 74.698206
chunky-png (click) 318139 284309 74 1330 1 0% 0 0 39.896302
erubi-rails (click) 1932545 1610889 263 3648 22 0% 0 0 100.787385
hexapdf (click) 1514908 1418510 593 15691 43 0% 0 0 456.935255
liquid-c (click) 542189 519690 114 2230 5 0% 0 0 61.999361
liquid-compile (click) 465078 422483 146 2722 2 0% 0 0 82.183325
liquid-render (click) 646844 617301 131 2946 8 0% 0 0 81.842606
lobsters (click) 8540276 7144983 3118 63458 118 0% 0 0 2140.619048
mail (click) 856949 783399 342 7696 40 0% 0 0 217.736328
psych-load (click) 281045 281032 61 830 2 0% 0 0 24.917634
railsbench (click) 3327980 2950118 1605 19601 47 0% 0 0 562.582678
rubocop (click) 6121069 5277462 3014 63654 157 0% 6 0 1873.829684
ruby-lsp (click) 961893 863732 347 6796 44 0% 1 0 191.202717
sequel (click) 494954 380030 11 119 0 0% 0 0 4.045937
shipit (click) 7642304 6491073 3289 52544 184 0% 0 0 1733.510055
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.692619
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.360348
erubi (click) 248282 214651 5 125 0 0% 0 0 3.934926
etanni (click) 32930 35718 8 114 0 0% 0 0 3.708966
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.217138
fluentd (click) 466202 387356 7 115 0 0% 0 0 3.812264
graphql (click) 403196 360158 73 1920 19 0% 0 0 55.813391
graphql-native (click) 345837 300426 39 532 0 0% 0 0 14.277102
lee (click) 311003 246693 49 1070 0 0% 0 0 31.949413
matmul (click) 11125 4603 8 132 0 0% 0 0 4.199915
nbody (click) 13890 20235 6 238 0 0% 0 0 5.859263
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.539982
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 113.179073
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.602979
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 47.048591
rack (click) 276115 225498 35 580 0 0% 0 0 15.729371
ruby-json (click) 19776 17761 8 204 0 0% 0 0 5.778734
rubyboy (click) 687979 643801 154 6864 42 0% 0 0 175.343311
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.303086
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.214172
tinygql (click) 301100 246910 59 1031 5 0% 0 0 27.623578
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1968.616639
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 486.29272
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.075022
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.516403
fib (click) 2659 2995 3 30 0 0% 0 0 1.143274
getivar (click) 3812 6802 3 78 0 0% 0 0 1.927074
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.764399
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.765588
object-new (click) 2406 2818 2 36 0 0% 0 0 1.129765
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.173921
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.79709
setivar (click) 2783 3726 3 46 0 0% 0 0 1.269803
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.43209
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.720537
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.425832
throw (click) 5953 4624 5 53 0 0% 0 0 1.872614

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.