YJIT Benchmarks

Details for Benchmarks at 2025-06-10 03:55:43 UTC

YJIT metrics from the yjit-bench suite using Ruby 6184793ea9.

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 93.1% faster than CRuby 3.5.0dev
  • 5.5% faster than YJIT 3.3.6
On railsbench it is
  • 104.9% faster than CRuby 3.5.0dev
  • 4.9% faster than YJIT 3.3.6
x86_64 runtime: 4 hours, 27 minutes
aarch64 runtime: 3 hours, 47 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 75 50 157 50 165
chunky-png 5 31 5 32 50 14 50 24
erubi-rails 5 16 5 14 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 418 5 417 50 584 50 596
liquid-compile 5 408 5 449 50 539 50 696
liquid-render 5 168 5 171 50 403 50 438
lobsters 5 20 5 19 50 10 50 10
mail 5 194 5 184 50 249 50 220
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 155 5 154 50 251 50 259
ruby-lsp 5 156 5 151 50 246 50 264
sequel 5 412 5 414 50 601 50 576
binarytrees 5 84 5 81 50 146 50 121
blurhash 5 82 5 87 50 127 50 145
erubi 5 124 5 134 50 98 50 144
etanni 5 91 5 101 50 53 50 69
fannkuchredux 5 52 5 57 50 97 50 105
fluentd 5 63 5 60 50 25 50 26
graphql 5 85 5 83 50 57 50 56
graphql-native 5 39 5 46 50 10 50 14
lee 5 23 5 24 50 10 50 10
matmul 5 51 5 51 50 88 50 90
nbody 5 249 5 240 50 585 50 699
nqueens 5 120 5 115 50 75 50 518
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 174 5 156 50 621 50 736
protoboeuf-encode 5 179 5 202 50 327 50 772
rack 5 588 5 619 50 963 50 1051
ruby-json 5 84 5 83 50 50 50 49
rubyboy 5 10 5 10 50 10 50 10
rubykon 5 21 5 22 50 10 50 10
sudoku 5 48 5 51 50 163 50 150
tinygql 5 36 5 35 50 22 50 33
30k_ifelse 5 28 5 27 50 214 50 184
30k_methods 5 39 5 38 50 477 50 471
cfunc_itself 5 358 5 350 50 1147 50 1258
fib 5 127 5 142 50 902 50 931
getivar 5 214 5 312 50 2252 50 2406
keyword_args 5 104 5 110 50 1041 50 1243
loops-times 5 24 5 25 50 48 50 56
object-new 5 322 5 361 50 404 50 617
respond_to 5 133 5 134 50 3257 50 3897
ruby-xor 5 245 5 247 50 799 50 1295
setivar 5 361 5 402 50 3188 50 4981
setivar_object 5 354 5 362 50 672 50 589
setivar_young 5 367 5 362 50 703 50 605
str_concat 5 396 5 455 50 981 50 1191
throw 5 1269 5 1278 50 1719 50 1702

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) 1486581 1244502 206 2590 0 0% 0 0 76.11696
chunky-png (click) 336077 293829 74 1330 1 0% 0 0 39.288491
erubi-rails (click) 1992027 1795985 263 3669 21 0% 0 0 101.378437
hexapdf (click) 1496595 1343708 593 15661 35 0% 0 0 461.267244
liquid-c (click) 532650 461619 114 2217 5 0% 0 0 62.102733
liquid-compile (click) 461047 369824 146 2759 2 0% 0 0 81.953145
liquid-render (click) 640164 529310 131 2933 8 0% 0 0 82.382336
lobsters (click) 8542605 7228853 3169 63875 118 0% 0 0 2178.66293
mail (click) 798059 766364 342 7227 40 0% 0 0 207.867067
psych-load (click) 293754 235471 61 822 3 0% 0 0 24.765497
railsbench (click) 3411264 2988024 1653 20267 56 0% 0 0 593.678776
rubocop (click) 5895767 5227684 2885 61703 114 0% 4 0 1830.94732
ruby-lsp (click) 891564 778672 305 5956 29 0% 0 0 165.264315
sequel (click) 478885 419671 11 114 0 0% 0 0 4.125106
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.633999
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.407442
erubi (click) 246330 213627 5 125 0 0% 0 0 3.887848
etanni (click) 30806 32125 8 108 0 0% 0 0 3.531093
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.213971
fluentd (click) 389247 335098 7 115 0 0% 0 0 3.752477
graphql (click) 435906 393525 66 1035 0 0% 0 0 28.676114
graphql-native (click) 413127 346349 37 399 0 0% 0 0 11.124508
lee (click) 322502 247438 45 1012 0 0% 0 0 30.509308
matmul (click) 11125 4603 8 132 0 0% 0 0 4.242869
nbody (click) 13890 20235 6 238 0 0% 0 0 5.853426
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.387293
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 113.173787
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.752098
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 47.011822
rack (click) 254913 226527 31 496 0 0% 0 0 13.062437
ruby-json (click) 24676 22156 8 204 0 0% 0 0 5.916304
rubyboy (click) 716930 663308 177 6962 40 0% 0 0 177.184996
rubykon (click) 146441 162602 137 2076 3 0% 0 0 57.416619
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.116528
tinygql (click) 315735 268410 58 977 5 0% 0 0 27.423063
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1975.467255
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 495.683498
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.468269
fib (click) 2659 2995 3 30 0 0% 0 0 1.091789
getivar (click) 3812 6802 3 78 0 0% 0 0 1.926209
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.802552
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.777023
object-new (click) 2406 2818 2 36 0 0% 0 0 1.12245
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.097092
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.766198
setivar (click) 2783 3726 3 46 0 0% 0 0 1.24582
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.394645
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.703776
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.459722
throw (click) 5953 4624 5 53 0 0% 0 0 1.839963

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.