YJIT Benchmarks

Details for Benchmarks at 2024-01-02 19:08:16 UTC

YJIT metrics from the yjit-bench suite using Ruby 165deec5fe

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 63.5% faster than CRuby 3.4.0dev
On railsbench it is
  • 68.0% 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 487 30 487
chunky-png 30 30 30 30
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 339 30 339
liquid-compile 30 351 30 351
liquid-render 30 247 30 247
lobsters 30 23 30 23
mail 30 162 30 162
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 391 30 391
sequel 30 290 30 290
binarytrees 30 83 30 83
erubi 30 76 30 76
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 260 30 260
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 416 30 416
getivar 30 936 30 936
keyword_args 30 501 30 501
respond_to 30 1188 30 1188
setivar 30 1668 30 1668
setivar_object 30 472 30 472
setivar_young 30 470 30 470
str_concat 30 424 30 424
throw 30 856 30 856

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) 734870 674668 50 509 3 0% 0 0 0 15.288936
chunky-png (click) 314299 283074 87 1099 1 0% 0 0 0 32.960143
erubi-rails (click) 1614450 1394588 287 2915 1 0% 0 0 0 82.961042
hexapdf (click) 1310776 1136459 598 12116 37 0% 0 0 0 356.715924
liquid-c (click) 485272 434112 120 1701 5 0% 0 0 0 47.516989
liquid-compile (click) 346286 297628 150 2022 2 0% 0 0 0 62.037598
liquid-render (click) 515547 448468 143 2149 5 0% 0 0 0 59.464162
lobsters (click) 7394954 6403875 3182 48110 64 0% 0 0 0 1607.090195
mail (click) 653059 567747 345 4760 12 0% 0 0 0 140.36247
psych-load (click) 262571 220831 65 600 3 0% 0 0 0 18.967274
railsbench (click) 2437861 2125252 1357 12400 16 0% 0 0 0 363.926702
ruby-lsp (click) 5292841 4524696 3395 49737 395 0% 4 0 0 1525.706105
sequel (click) 458207 416815 16 116 0 0% 0 0 0 4.114719
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.965679
erubi (click) 234394 221682 10 95 0 0% 0 0 0 3.236091
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.060617
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.149438
fluentd (click) 334926 292775 12 104 0 0% 0 0 0 3.353478
graphql (click) 398661 343505 70 658 0 0% 0 0 0 20.254465
graphql-native (click) 370627 317499 42 264 0 0% 0 0 0 8.771518
lee (click) 282858 259179 49 691 0 0% 0 0 0 22.018869
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.57643
optcarrot (click) 314630 268142 194 4242 32 0% 0 0 0 100.528203
rack (click) 246558 228481 31 301 0 0% 0 0 0 8.870964
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.184485
rubykon (click) 128662 101831 144 1471 3 0% 0 0 0 41.56172
tinygql (click) 278942 237473 63 773 5 0% 0 0 0 22.235741
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1387.099126
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 493.318838
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.404
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.822124
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.17347
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.586185
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.758133
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.787411
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.865516
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.114471
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.761033
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.390302

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.