YJIT Benchmarks

Details for Benchmarks at 2024-02-08 19:08:15 UTC

YJIT metrics from the yjit-bench suite using Ruby 1936278461

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 68.0% faster than CRuby 3.4.0dev
On railsbench it is
  • 75.7% 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 486 30 486
chunky-png 30 31 30 31
erubi-rails 30 19 30 19
hexapdf 30 15 30 15
liquid-c 30 350 30 350
liquid-compile 30 337 30 337
liquid-render 30 248 30 248
lobsters 30 22 30 22
mail 30 162 30 162
psych-load 30 15 30 15
railsbench 30 15 30 15
rubocop 30 178 30 178
ruby-lsp 30 212 30 212
sequel 30 289 30 289
binarytrees 30 84 30 84
blurhash 30 98 30 98
erubi 30 75 30 75
etanni 30 52 30 52
fannkuchredux 30 23 30 23
fluentd 30 15 30 15
graphql 30 15 30 15
graphql-native 30 32 30 32
lee 30 19 30 19
matmul 30 17 30 17
nbody 30 309 30 309
nqueens 30 293 30 293
optcarrot 30 15 30 15
rack 30 184 30 184
ruby-json 30 15 30 15
rubykon 30 15 30 15
sudoku 30 24 30 24
tinygql 30 41 30 41
30k_ifelse 30 55 30 55
30k_methods 30 23 30 23
cfunc_itself 30 827 30 827
fib 30 417 30 417
getivar 30 946 30 946
keyword_args 30 533 30 533
respond_to 30 1435 30 1435
ruby-xor 30 92 30 92
setivar 30 1668 30 1668
setivar_object 30 291 30 291
setivar_young 30 353 30 353
str_concat 30 397 30 397
throw 30 824 30 824

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) 854197 737569 49 520 0 0% 0 0 0 15.713
chunky-png (click) 328802 282836 87 1109 1 0% 0 0 0 32.801303
erubi-rails (click) 1668163 1465297 280 2920 6 0% 0 0 0 82.220385
hexapdf (click) 1373384 1130921 597 12532 37 0% 0 0 0 366.213536
liquid-c (click) 500345 461704 119 1756 5 0% 0 0 0 48.130292
liquid-compile (click) 433593 399930 151 2056 2 0% 0 0 0 62.976707
liquid-render (click) 607216 555067 143 2266 8 0% 0 0 0 62.743857
lobsters (click) 7535699 6496470 3224 50191 72 0% 0 0 0 1676.057914
mail (click) 709499 630217 345 4842 14 0% 0 0 0 141.845373
psych-load (click) 290291 257378 65 649 3 0% 0 0 0 20.000107
railsbench (click) 2908439 2555922 1642 15584 54 0% 0 0 0 447.871993
rubocop (click) 4937149 4362722 2901 44428 99 0% 4 0 0 1334.452714
ruby-lsp (click) 625405 564966 159 2816 14 0% 0 0 0 78.977131
sequel (click) 486112 427674 16 115 0 0% 0 0 0 4.176673
binarytrees (click) 9143 8108 11 75 0 0% 0 0 0 2.972731
blurhash (click) 51313 49807 32 478 0 0% 0 0 0 15.689903
erubi (click) 263655 234580 10 114 0 0% 0 0 0 3.822495
etanni (click) 31538 30138 12 98 0 0% 0 0 0 3.327174
fannkuchredux (click) 24859 26640 9 259 0 0% 0 0 0 8.016383
fluentd (click) 377754 314216 11 111 0 0% 0 0 0 3.657899
graphql (click) 429356 369112 70 668 0 0% 0 0 0 20.365502
graphql-native (click) 395376 354556 42 273 0 0% 0 0 0 9.130804
lee (click) 307160 251964 49 735 0 0% 0 0 0 23.152762
matmul (click) 12467 4614 12 126 0 0% 0 0 0 4.233797
nbody (click) 15071 8084 11 187 0 0% 0 0 0 5.07847
nqueens (click) 23554 27064 10 263 0 0% 0 0 0 7.820253
optcarrot (click) 312921 264580 194 4346 34 0% 0 0 0 103.068964
rack (click) 264180 223224 31 322 0 0% 0 0 0 9.260525
ruby-json (click) 27885 25578 12 202 0 0% 0 0 0 6.113776
rubykon (click) 130555 101725 145 1504 3 0% 0 0 0 42.080286
sudoku (click) 46746 38099 11 507 0 0% 0 0 0 15.275588
tinygql (click) 302376 270326 63 792 5 0% 0 0 0 22.574947
30k_ifelse (click) 4909277 4374613 9264 50815 0 0% 0 0 0 1405.294915
30k_methods (click) 1850173 1594291 5782 19371 0 0% 0 0 0 497.411238
cfunc_itself (click) 7567 6743 9 72 0 0% 0 0 0 2.359313
fib (click) 4896 5000 8 49 0 0% 0 0 0 1.844182
getivar (click) 6031 6390 8 74 0 0% 0 0 0 2.261768
keyword_args (click) 8175 6947 10 74 0 0% 0 0 0 2.548162
respond_to (click) 8310 8363 9 87 0 0% 0 0 0 2.761737
ruby-xor (click) 7480 7262 9 81 0 0% 0 0 0 2.607673
setivar (click) 5182 4971 8 54 0 0% 0 0 0 1.868719
setivar_object (click) 5520 4991 8 54 0 0% 0 0 0 1.925008
setivar_young (click) 6269 5689 9 62 0 0% 0 0 0 2.197367
str_concat (click) 7832 7705 11 87 0 0% 0 0 0 2.915267
throw (click) 7575 6432 10 69 0 0% 0 0 0 2.363164

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.