YJIT Benchmarks

Details for Benchmarks at 2024-01-15 06:08:15 UTC

YJIT metrics from the yjit-bench suite using Ruby 9c3299896e

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 64.4% faster than CRuby 3.4.0dev
On railsbench it is
  • 67.3% faster than CRuby 3.4.0dev

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.4.0dev warmups CRuby 3.4.0dev iters YJIT 3.4.0dev warmups YJIT 3.4.0dev iters
activerecord 30 477 30 477
chunky-png 30 29 30 29
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 348 30 348
liquid-compile 30 366 30 366
liquid-render 30 245 30 245
lobsters 30 23 30 23
mail 30 164 30 164
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 387 30 387
sequel 30 300 30 300
binarytrees 30 84 30 84
erubi 30 77 30 77
etanni 30 51 30 51
fannkuchredux 30 23 30 23
fluentd 30 15 30 15
graphql 30 15 30 15
graphql-native 30 33 30 33
lee 30 19 30 19
matmul 30 16 30 16
nbody 30 274 30 274
nqueens 30 265 30 265
optcarrot 30 15 30 15
rack 30 185 30 185
ruby-json 30 15 30 15
rubykon 30 15 30 15
sudoku 30 24 30 24
tinygql 30 42 30 42
30k_ifelse 30 55 30 55
30k_methods 30 23 30 23
cfunc_itself 30 752 30 752
fib 30 417 30 417
getivar 30 943 30 943
keyword_args 30 492 30 492
respond_to 30 1174 30 1174
setivar 30 1668 30 1668
setivar_object 30 472 30 472
setivar_young 30 471 30 471
str_concat 30 444 30 444
throw 30 832 30 832

Different Ruby configurations want different amounts of warmup. With no JIT, CRuby needs hardly any. YJIT and MJIT 3.0 both warm up quite quickly, while MJIT in 3.1 often slows down for a time as it compiles, after an unpredictable delay.

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) 735939 651671 50 513 3 0% 0 0 0 15.5281
chunky-png (click) 305905 268299 86 1094 1 0% 0 0 0 33.046415
erubi-rails (click) 1610360 1424067 287 2903 1 0% 0 0 0 82.814835
hexapdf (click) 1334454 1145266 598 12123 36 0% 0 0 0 356.227142
liquid-c (click) 486333 452747 120 1701 5 0% 0 0 0 47.383106
liquid-compile (click) 348540 267369 150 2019 2 0% 0 0 0 62.766719
liquid-render (click) 520062 396277 143 2161 5 0% 0 0 0 60.7046
lobsters (click) 7407479 6327216 3182 48270 65 0% 0 0 0 1627.405109
mail (click) 683003 596344 345 4767 12 0% 0 0 0 141.057583
psych-load (click) 260898 211757 65 600 3 0% 0 0 0 18.909713
railsbench (click) 2459804 2161035 1357 12408 16 0% 0 0 0 365.990403
ruby-lsp (click) 5303106 4678197 3394 49742 399 0% 4 0 0 1540.60824
sequel (click) 453682 397144 16 119 0 0% 0 0 0 4.353333
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.99455
erubi (click) 232785 229083 10 95 0 0% 0 0 0 3.273989
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.06745
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.216267
fluentd (click) 332230 282621 12 104 0 0% 0 0 0 3.372217
graphql (click) 396988 350818 70 658 0 0% 0 0 0 20.315757
graphql-native (click) 362855 327706 42 264 0 0% 0 0 0 8.84161
lee (click) 281180 250100 49 691 0 0% 0 0 0 22.009108
matmul (click) 12919 12854 12 124 0 0% 0 0 0 4.196704
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.60277
nqueens (click) 19671 5668 10 206 0 0% 0 0 0 6.440867
optcarrot (click) 314630 260302 194 4242 32 0% 0 0 0 101.194826
rack (click) 239051 206231 31 304 0 0% 0 0 0 8.968401
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.223129
rubykon (click) 129011 102070 144 1473 3 0% 0 0 0 41.901478
sudoku (click) 46943 31883 10 515 0 0% 0 0 0 15.670618
tinygql (click) 277271 244800 63 773 5 0% 0 0 0 22.416853
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1395.932228
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 497.480724
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.387988
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.776708
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.244332
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.563118
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.835464
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.817468
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.856214
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.09515
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.806371
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.341459

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.