YJIT Benchmarks

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

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

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 63.9% faster than CRuby 3.4.0dev
On railsbench it is
  • 69.9% 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 483 30 483
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 340 30 340
liquid-render 30 244 30 244
lobsters 30 23 30 23
mail 30 163 30 163
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 389 30 389
sequel 30 301 30 301
binarytrees 30 85 30 85
erubi 30 75 30 75
etanni 30 51 30 51
fannkuchredux 30 24 30 24
fluentd 30 15 30 15
graphql 30 15 30 15
graphql-native 30 32 30 32
lee 30 19 30 19
nbody 30 262 30 262
optcarrot 30 15 30 15
rack 30 181 30 181
ruby-json 30 15 30 15
rubykon 30 15 30 15
tinygql 30 42 30 42
30k_ifelse 30 55 30 55
30k_methods 30 23 30 23
cfunc_itself 30 754 30 754
fib 30 417 30 417
getivar 30 940 30 940
keyword_args 30 501 30 501
respond_to 30 1209 30 1209
setivar 30 1668 30 1668
setivar_object 30 471 30 471
setivar_young 30 467 30 467
str_concat 30 397 30 397
throw 30 863 30 863

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) 736748 676175 50 515 3 0% 0 0 0 15.399522
chunky-png (click) 308131 269483 87 1099 1 0% 0 0 0 32.94577
erubi-rails (click) 1611462 1400042 287 2903 1 0% 0 0 0 82.164751
hexapdf (click) 1334507 1185583 598 12108 36 0% 0 0 0 354.385253
liquid-c (click) 485504 442539 120 1701 5 0% 0 0 0 47.146943
liquid-compile (click) 345767 297213 150 2017 2 0% 0 0 0 61.800274
liquid-render (click) 515547 448468 143 2149 5 0% 0 0 0 59.565232
lobsters (click) 7410176 6335973 3182 48277 64 0% 0 0 0 1617.099526
mail (click) 684515 604278 345 4760 12 0% 0 0 0 140.320881
psych-load (click) 262571 220831 65 600 3 0% 0 0 0 18.778046
railsbench (click) 2461271 2162841 1357 12503 16 0% 0 0 0 367.953631
ruby-lsp (click) 5308906 4564753 3395 49714 398 0% 4 0 0 1528.016222
sequel (click) 458020 433311 16 119 0 0% 0 0 0 4.291074
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.926453
erubi (click) 234394 221682 10 95 0 0% 0 0 0 3.211089
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.018528
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.214219
fluentd (click) 334926 292798 12 104 0 0% 0 0 0 3.304782
graphql (click) 398661 343500 70 658 0 0% 0 0 0 20.177667
graphql-native (click) 364464 312088 42 264 0 0% 0 0 0 8.799184
lee (click) 279861 256831 49 691 0 0% 0 0 0 22.039983
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.589942
optcarrot (click) 314630 268142 194 4242 32 0% 0 0 0 101.302752
rack (click) 241707 216816 31 323 0 0% 0 0 0 9.290991
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.148896
rubykon (click) 128662 101831 144 1471 3 0% 0 0 0 41.413275
tinygql (click) 278942 237473 63 773 5 0% 0 0 0 22.229211
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1383.049374
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 495.071606
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.392558
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.784234
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.172579
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.575065
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.751897
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.800035
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.850762
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.084455
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.83427
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.348435

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.