YJIT Benchmarks

Details for Benchmarks at 2025-08-26 03:50:45 UTC

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

Using the geomean of the headline benchmarks for x86 YJIT 3.5.0dev is
  • 90.3% faster than CRuby 3.5.0dev
  • 5.4% faster than YJIT 3.3.6
On railsbench it is
  • 107.0% faster than CRuby 3.5.0dev
  • 8.1% 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 86 50 176 50 203
chunky-png 5 31 5 32 50 15 50 26
erubi-rails 5 16 5 15 50 10 50 10
hexapdf 5 10 5 10 50 10 50 10
liquid-c 5 406 5 403 50 566 50 515
liquid-compile 5 409 5 467 50 573 50 706
liquid-render 5 172 5 169 50 405 50 375
lobsters 5 20 5 20 50 10 50 10
mail 5 189 5 176 50 249 50 200
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 212 50 215
ruby-lsp 5 142 5 147 50 226 50 246
sequel 5 422 5 435 50 594 50 591
shipit 5 10 5 10 50 10 50 10
binarytrees 5 84 5 82 50 146 50 128
blurhash 5 82 5 84 50 127 50 145
erubi 5 126 5 135 50 100 50 139
etanni 5 90 5 94 50 52 50 68
fannkuchredux 5 52 5 57 50 97 50 97
fluentd 5 62 5 58 50 25 50 24
graphql 5 337 5 450 50 460 50 914
graphql-native 5 51 5 78 50 14 50 62
lee 5 23 5 22 50 10 50 10
matmul 5 51 5 48 50 88 50 91
nbody 5 249 5 239 50 585 50 702
nqueens 5 120 5 125 50 74 50 547
optcarrot 5 10 5 10 50 10 50 10
protoboeuf 5 179 5 181 50 621 50 674
protoboeuf-encode 5 178 5 197 50 327 50 822
rack 5 415 5 436 50 642 50 686
ruby-json 5 83 5 82 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 151
tinygql 5 40 5 42 50 42 50 48
30k_ifelse 5 28 5 27 50 215 50 184
30k_methods 5 38 5 38 50 481 50 466
attr_accessor 5 157 5 172 50 1720 50 1861
cfunc_itself 5 358 5 352 50 1138 50 1258
fib 5 127 5 141 50 903 50 932
getivar 5 212 5 280 50 2251 50 2381
keyword_args 5 104 5 106 50 1034 50 1243
loops-times 5 24 5 23 50 48 50 50
object-new 5 318 5 293 50 406 50 425
respond_to 5 134 5 131 50 3256 50 3898
ruby-xor 5 245 5 241 50 799 50 1277
setivar 5 361 5 359 50 3190 50 4936
setivar_object 5 353 5 317 50 670 50 605
setivar_young 5 367 5 321 50 702 50 650
str_concat 5 400 5 438 50 979 50 1169
throw 5 1272 5 1119 50 1744 50 1395

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) 1522284 1307433 203 2569 0 0% 0 0 74.652142
chunky-png (click) 317143 282904 74 1322 1 0% 0 0 38.95249
erubi-rails (click) 1910551 1725451 262 3656 22 0% 0 0 101.269028
hexapdf (click) 1502862 1299396 593 15681 43 0% 0 0 452.407367
liquid-c (click) 540181 443346 114 2217 5 0% 0 0 60.895839
liquid-compile (click) 464894 421860 146 2723 2 0% 0 0 81.521709
liquid-render (click) 646939 551307 131 2933 8 0% 0 0 80.788099
lobsters (click) 8482382 7100158 3118 63118 118 0% 0 0 2116.337578
mail (click) 831608 721329 342 7227 40 0% 0 0 209.270308
psych-load (click) 281025 223299 61 830 2 0% 0 0 24.769349
railsbench (click) 3305764 2881743 1605 19585 47 0% 0 0 563.84555
rubocop (click) 6114186 5277333 3014 63583 157 0% 6 0 1896.481027
ruby-lsp (click) 958591 810839 347 6807 44 0% 1 0 189.434917
sequel (click) 494859 403092 11 119 0 0% 0 0 4.16719
shipit (click) 7566021 6448945 3288 52191 181 0% 0 0 1697.745791
binarytrees (click) 7273 6911 6 64 0 0% 0 0 2.666568
blurhash (click) 52295 51444 27 603 0 0% 0 0 18.175516
erubi (click) 247585 221910 5 125 0 0% 0 0 3.912711
etanni (click) 30806 32125 8 108 0 0% 0 0 3.605191
fannkuchredux (click) 24746 40953 3 399 0 0% 0 0 11.224697
fluentd (click) 466236 411541 7 115 0 0% 0 0 3.833143
graphql (click) 402012 350562 73 1919 19 0% 0 0 54.660694
graphql-native (click) 345469 307745 39 532 0 0% 0 0 14.193923
lee (click) 299397 266707 49 1070 0 0% 0 0 32.068244
matmul (click) 11125 4603 8 132 0 0% 0 0 4.168572
nbody (click) 13890 20235 6 238 0 0% 0 0 5.861387
nqueens (click) 22652 36960 5 387 0 0% 0 0 10.404308
optcarrot (click) 325946 290644 188 4740 34 0% 0 0 111.816624
protoboeuf (click) 170160 177773 12 2836 0 0% 0 0 76.571255
protoboeuf-encode (click) 243046 283791 14 1815 0 0% 0 0 46.230907
rack (click) 274371 288847 35 580 0 0% 0 0 15.523038
ruby-json (click) 19782 17637 8 204 0 0% 0 0 5.696046
rubyboy (click) 688489 627292 154 6860 42 0% 0 0 173.508706
rubykon (click) 145449 177646 137 2062 3 0% 0 0 56.686745
sudoku (click) 52157 66291 7 871 0 0% 0 0 23.952117
tinygql (click) 283606 245864 59 1031 5 0% 0 0 28.182662
30k_ifelse (click) 6219958 5057296 9259 75432 0 0% 0 0 1953.203367
30k_methods (click) 2234566 1592952 5778 19357 0 0% 0 0 482.015415
attr_accessor (click) 4372 7952 3 78 0 0% 0 0 2.050362
cfunc_itself (click) 5127 4155 4 53 0 0% 0 0 1.495169
fib (click) 2659 2995 3 30 0 0% 0 0 1.037779
getivar (click) 3812 6802 3 78 0 0% 0 0 1.887757
keyword_args (click) 6332 4965 5 56 0 0% 0 0 1.801787
loops-times (click) 6972 8013 5 93 0 0% 0 0 2.746732
object-new (click) 2406 2818 2 36 0 0% 0 0 1.114419
respond_to (click) 6451 6819 4 80 0 0% 0 0 2.119099
ruby-xor (click) 5876 8690 4 100 0 0% 0 0 2.756153
setivar (click) 2783 3726 3 46 0 0% 0 0 1.272967
setivar_object (click) 3402 3956 3 49 0 0% 0 0 1.393798
setivar_young (click) 4300 4867 4 63 0 0% 0 0 1.70498
str_concat (click) 5799 6969 6 82 0 0% 0 0 2.500637
throw (click) 5953 4624 5 53 0 0% 0 0 1.762846

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.