YJIT Benchmarks

Details for Benchmarks at 2024-01-20 06:08:13 UTC

YJIT metrics from the yjit-bench suite using Ruby 99d6e2f1ee

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 62.4% faster than CRuby 3.4.0dev
On railsbench it is
  • 67.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 482 30 482
chunky-png 30 30 30 30
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 347 30 347
liquid-compile 30 341 30 341
liquid-render 30 245 30 245
lobsters 30 23 30 23
mail 30 163 30 163
psych-load 30 15 30 15
railsbench 30 15 30 15
rubocop 15 15 15 15
ruby-lsp 30 389 30 389
sequel 30 301 30 301
binarytrees 30 86 30 86
blurhash 15 15 15 15
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 276 30 276
nqueens 30 259 30 259
optcarrot 30 15 30 15
rack 30 180 30 180
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 827 30 827
fib 30 416 30 416
getivar 30 945 30 945
keyword_args 30 533 30 533
respond_to 30 1436 30 1436
setivar 30 1668 30 1668
setivar_object 30 378 30 378
setivar_young 30 398 30 398
str_concat 30 450 30 450
throw 30 861 30 861

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) 756621 674390 50 530 3 0% 0 0 0 15.861584
chunky-png (click) 308762 279175 87 1076 1 0% 0 0 0 32.071805
erubi-rails (click) 1627033 1446846 287 2896 1 0% 0 0 0 82.226624
hexapdf (click) 1348981 1156892 597 12273 36 0% 0 0 0 361.727502
liquid-c (click) 492442 402119 120 1701 5 0% 0 0 0 47.203486
liquid-compile (click) 415521 349548 151 2022 2 0% 0 0 0 62.51468
liquid-render (click) 585153 502320 143 2189 8 0% 0 0 0 61.056159
lobsters (click) 7559584 6511412 3146 49039 70 0% 0 0 0 1654.987985
mail (click) 687182 599951 345 4770 12 0% 0 0 0 140.64951
psych-load (click) 273257 248663 65 626 3 0% 0 0 0 19.760315
railsbench (click) 2488880 2197932 1357 12566 19 0% 0 0 0 372.467541
rubocop (click) 4880745 4207206 2897 43704 93 0% 4 0 0 1320.749386
ruby-lsp (click) 620031 553256 159 2741 14 0% 0 0 0 78.599766
sequel (click) 460074 420233 16 124 0 0% 0 0 0 4.651394
binarytrees (click) 9291 8120 11 75 0 0% 0 0 0 3.005365
blurhash (click) 50709 46422 31 421 1 0% 0 0 0 14.518239
erubi (click) 245821 224333 10 96 0 0% 0 0 0 3.283147
etanni (click) 30527 20735 12 92 0 0% 0 0 0 3.16975
fannkuchredux (click) 25131 18619 9 260 0 0% 0 0 0 7.936693
fluentd (click) 350450 308936 12 104 0 0% 0 0 0 3.376285
graphql (click) 416262 376245 70 656 0 0% 0 0 0 20.219556
graphql-native (click) 383165 329626 42 261 0 0% 0 0 0 8.598187
lee (click) 288911 257450 49 689 0 0% 0 0 0 21.788381
matmul (click) 12823 4423 12 123 0 0% 0 0 0 4.253424
nbody (click) 18205 16926 11 188 0 0% 0 0 0 5.528211
nqueens (click) 16593 18031 10 175 0 0% 0 0 0 5.498086
optcarrot (click) 304524 229410 197 4254 33 0% 0 0 0 101.038505
rack (click) 245570 228668 31 302 0 0% 0 0 0 8.848159
ruby-json (click) 27523 24999 12 203 0 0% 0 0 0 6.159882
rubykon (click) 127589 92671 144 1462 3 0% 0 0 0 41.251114
sudoku (click) 45221 36695 10 492 0 0% 0 0 0 14.828099
tinygql (click) 284538 260207 63 780 5 0% 0 0 0 22.603594
30k_ifelse (click) 4909613 4374725 9264 50816 0 0% 0 0 0 1392.228872
30k_methods (click) 1850440 1594390 5782 19372 0 0% 0 0 0 497.370051
cfunc_itself (click) 7728 6775 9 72 0 0% 0 0 0 2.403705
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.82609
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.275962
keyword_args (click) 8341 6984 10 74 0 0% 0 0 0 2.566337
respond_to (click) 8471 8395 9 87 0 0% 0 0 0 2.808509
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.85562
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.943395
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.205742
str_concat (click) 8168 7817 11 88 0 0% 0 0 0 2.886569
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.348825

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.