YJIT Benchmarks

Details for Benchmarks at 2024-01-12 06:08:14 UTC

YJIT metrics from the yjit-bench suite using Ruby 6a45320c25

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 65.4% faster than CRuby 3.4.0dev
On railsbench it is
  • 66.6% 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 480 30 480
chunky-png 30 30 30 30
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 348 30 348
liquid-compile 30 359 30 359
liquid-render 30 243 30 243
lobsters 30 23 30 23
mail 30 163 30 163
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 393 30 393
sequel 30 297 30 297
binarytrees 30 83 30 83
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 15 30 15
nbody 30 279 30 279
nqueens 30 101 30 101
optcarrot 30 15 30 15
rack 30 177 30 177
ruby-json 30 15 30 15
rubykon 30 15 30 15
sudoku 30 15 30 15
tinygql 30 40 30 40
30k_ifelse 30 55 30 55
30k_methods 30 24 30 24
cfunc_itself 30 750 30 750
fib 30 416 30 416
getivar 30 946 30 946
keyword_args 30 491 30 491
respond_to 30 1181 30 1181
setivar 30 1668 30 1668
setivar_object 30 472 30 472
setivar_young 30 471 30 471
str_concat 30 439 30 439
throw 30 806 30 806

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) 734891 650894 50 513 3 0% 0 0 0 15.38777
chunky-png (click) 306522 268800 87 1099 1 0% 0 0 0 33.094183
erubi-rails (click) 1609196 1389965 287 2905 1 0% 0 0 0 82.555605
hexapdf (click) 1330853 1124863 598 12084 36 0% 0 0 0 352.808532
liquid-c (click) 486421 444664 120 1702 5 0% 0 0 0 47.009281
liquid-compile (click) 348823 267946 150 2024 2 0% 0 0 0 61.945924
liquid-render (click) 519851 387859 143 2161 5 0% 0 0 0 60.811151
lobsters (click) 7399239 6324516 3182 48171 64 0% 0 0 0 1616.675529
mail (click) 682842 595429 345 4760 12 0% 0 0 0 140.249289
psych-load (click) 260898 211757 65 600 3 0% 0 0 0 18.837266
railsbench (click) 2457705 2159598 1357 12400 16 0% 0 0 0 362.936419
ruby-lsp (click) 5296210 4571138 3395 49672 397 0% 4 0 0 1525.406778
sequel (click) 456733 400480 16 118 0 0% 0 0 0 4.23863
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.919477
erubi (click) 232785 229083 10 95 0 0% 0 0 0 3.242333
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.036508
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.170823
fluentd (click) 332230 290801 12 104 0 0% 0 0 0 3.385742
graphql (click) 396988 350749 70 658 0 0% 0 0 0 20.205617
graphql-native (click) 362855 327701 42 264 0 0% 0 0 0 8.81548
lee (click) 281180 250100 49 691 0 0% 0 0 0 21.868951
matmul (click) 14070 12895 17 122 0 0% 0 0 0 4.244849
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.555499
nqueens (click) 18613 21105 12 196 0 0% 0 0 0 6.147564
optcarrot (click) 314630 260302 194 4242 32 0% 0 0 0 101.624023
rack (click) 239051 206199 31 304 0 0% 0 0 0 8.856999
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.180436
rubykon (click) 129011 102070 144 1473 3 0% 0 0 0 41.506407
sudoku (click) 44938 40709 26 421 0 0% 0 0 0 13.026053
tinygql (click) 277271 244800 63 773 5 0% 0 0 0 22.300177
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1386.325678
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 495.489107
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.378448
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.780811
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.241412
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.562238
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.769581
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.807215
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.856975
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.108651
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.798435
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.348065

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.