YJIT Benchmarks

Details for Benchmarks at 2025-09-03 03:46:00 UTC

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

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 93.2% faster than CRuby 3.5.0dev
  • 7.5% faster than YJIT 3.3.6
On railsbench it is
  • 99.9% 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 82 5 87 50 176 50 217
chunky-png 5 30 5 32 50 14 50 29
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 420 5 397 50 596 50 556
liquid-compile 5 423 5 461 50 541 50 711
liquid-render 5 171 5 171 50 405 50 377
lobsters 5 20 5 20 50 10 50 10
mail 5 194 5 180 50 237 50 227
psych-load 5 10 5 10 50 10 50 10
railsbench 5 10 5 10 50 10 50 10
rubocop 5 140 5 140 50 212 50 215
ruby-lsp 5 147 5 142 50 230 50 245
sequel 5 434 5 431 50 593 50 602
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 83 50 146 50 130
blurhash 5 82 5 87 50 127 50 145
erubi 5 125 5 141 50 101 50 136
etanni 5 90 5 69 50 53 50 35
fannkuchredux 5 52 5 52 50 97 50 85
fluentd 5 62 5 59 50 24 50 25
graphql 5 337 5 452 50 465 50 917
graphql-native 5 51 5 79 50 13 50 62
lee 5 23 5 23 50 10 50 10
matmul 5 51 5 50 50 88 50 81
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 178 5 186 50 621 50 752
protoboeuf-encode 5 173 5 203 50 326 50 768
rack 5 415 5 432 50 639 50 697
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 48 50 163 50 139
tinygql 5 40 5 42 50 39 50 46
30k_ifelse 5 28 5 27 50 216 50 184
30k_methods 5 38 5 38 50 479 50 477
attr_accessor 5 157 5 171 50 1723 50 1856
cfunc_itself 5 357 5 365 50 1137 50 1258
fib 5 127 5 142 50 903 50 931
getivar 5 212 5 328 50 2251 50 2413
keyword_args 5 104 5 103 50 1034 50 1243
loops-times 5 24 5 26 50 48 50 56
object-new 5 318 5 308 50 405 50 464
respond_to 5 134 5 137 50 3255 50 3896
ruby-xor 5 245 5 244 50 799 50 1278
setivar 5 361 5 380 50 3163 50 4958
setivar_object 5 356 5 317 50 683 50 570
setivar_young 5 367 5 320 50 703 50 592
str_concat 5 400 5 447 50 982 50 1205
throw 5 1273 5 1114 50 1737 50 1360

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) 1536839 1388979 203 2570 0 0% 0 0 75.169421
chunky-png (click) 317486 275500 74 1322 1 0% 0 0 39.801562
erubi-rails (click) 1940742 1694231 262 3729 22 0% 0 0 104.396996
hexapdf (click) 1513657 1269954 593 15680 43 0% 0 0 458.394645
liquid-c (click) 543438 462528 114 2228 5 0% 0 0 62.184453
liquid-compile (click) 465787 398795 146 2733 2 0% 0 0 82.611349
liquid-render (click) 647622 527840 131 2946 8 0% 0 0 81.376855
lobsters (click) 8558182 7238897 3120 63698 118 0% 0 0 2157.551723
mail (click) 854631 822542 342 7696 40 0% 0 0 219.561929
psych-load (click) 281292 264935 61 830 2 0% 0 0 24.500636
railsbench (click) 3335776 2968666 1605 19652 47 0% 0 0 568.192913
rubocop (click) 6121172 5383594 3014 63647 157 0% 6 0 1986.907895
ruby-lsp (click) 960726 927945 347 6802 44 0% 1 0 188.63895
sequel (click) 486703 443072 11 119 0 0% 0 0 4.043548
shipit (click) 7646846 6343288 3290 52604 184 0% 0 0 1717.217052
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.68012
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.094882
erubi (click) 247384 230343 5 125 0 0% 0 0 3.808344
etanni (click) 32930 35718 8 114 0 0% 0 0 3.624142
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.141223
fluentd (click) 466450 404083 7 115 0 0% 0 0 3.872646
graphql (click) 402347 384076 73 1920 19 0% 0 0 55.509365
graphql-native (click) 346085 292521 39 532 0 0% 0 0 14.466366
lee (click) 310512 246362 49 1070 0 0% 0 0 32.024262
matmul (click) 11125 4603 8 132 0 0% 0 0 4.213747
nbody (click) 13890 20235 6 238 0 0% 0 0 5.867178
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.442508
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 112.105029
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.708464
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.775036
rack (click) 274633 256695 35 580 0 0% 0 0 15.40827
ruby-json (click) 19776 17761 8 204 0 0% 0 0 5.671058
rubyboy (click) 688371 635930 154 6860 42 0% 0 0 174.093396
rubykon (click) 146441 162602 137 2076 3 0% 0 0 56.922247
sudoku (click) 52157 66291 7 871 0 0% 0 0 24.023021
tinygql (click) 300526 262792 59 1025 5 0% 0 0 27.421501
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1963.627654
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 485.311104
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.087289
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.495289
fib (click) 2659 2995 3 30 0 0% 0 0 1.090006
getivar (click) 3812 6802 3 78 0 0% 0 0 1.884942
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.742285
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.733856
object-new (click) 2406 2818 2 36 0 0% 0 0 1.066239
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.112458
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.726958
setivar (click) 2783 3726 3 46 0 0% 0 0 1.260543
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.375746
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.734128
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.467548
throw (click) 5953 4624 5 53 0 0% 0 0 1.790085

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.