YJIT Benchmarks

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

YJIT metrics from the yjit-bench suite using Ruby 73fb9c35ef

Using the geomean of the headline benchmarks for x86 YJIT 3.4.0dev is
  • 64.1% faster than CRuby 3.4.0dev
On railsbench it is
  • 69.1% 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 484 30 484
chunky-png 30 30 30 30
erubi-rails 30 15 30 15
hexapdf 30 15 30 15
liquid-c 30 344 30 344
liquid-compile 30 343 30 343
liquid-render 30 244 30 244
lobsters 30 23 30 23
mail 30 164 30 164
psych-load 30 15 30 15
railsbench 30 15 30 15
ruby-lsp 30 393 30 393
sequel 30 298 30 298
binarytrees 30 85 30 85
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
nbody 30 262 30 262
optcarrot 30 15 30 15
rack 30 183 30 183
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 753 30 753
fib 30 416 30 416
getivar 30 945 30 945
keyword_args 30 498 30 498
respond_to 30 1213 30 1213
setivar 30 1668 30 1668
setivar_object 30 471 30 471
setivar_young 30 468 30 468
str_concat 30 402 30 402
throw 30 843 30 843

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) 734894 666590 50 505 3 0% 0 0 0 15.028991
chunky-png (click) 308131 269483 87 1099 1 0% 0 0 0 32.993748
erubi-rails (click) 1613897 1401936 287 2933 1 0% 0 0 0 83.058204
hexapdf (click) 1334860 1210533 598 12113 36 0% 0 0 0 355.347328
liquid-c (click) 485272 434112 120 1701 5 0% 0 0 0 47.153107
liquid-compile (click) 346193 297513 150 2021 2 0% 0 0 0 62.031202
liquid-render (click) 515547 448468 143 2149 5 0% 0 0 0 59.523603
lobsters (click) 7393714 6355812 3182 48191 64 0% 0 0 0 1614.859835
mail (click) 684515 604278 345 4760 12 0% 0 0 0 140.790636
psych-load (click) 262571 220831 65 600 3 0% 0 0 0 18.91929
railsbench (click) 2462326 2195389 1357 12414 16 0% 0 0 0 363.826659
ruby-lsp (click) 5312064 4501777 3395 49746 397 0% 4 0 0 1526.849061
sequel (click) 454508 421810 16 121 0 0% 0 0 0 4.469701
binarytrees (click) 9306 8120 11 75 0 0% 0 0 0 2.939517
erubi (click) 234394 221682 10 95 0 0% 0 0 0 3.213487
etanni (click) 32063 22322 12 90 0 0% 0 0 0 3.020488
fannkuchredux (click) 22558 23293 9 233 0 0% 0 0 0 7.150216
fluentd (click) 334926 292827 12 104 0 0% 0 0 0 3.380659
graphql (click) 398661 343463 70 658 0 0% 0 0 0 20.363465
graphql-native (click) 364464 312088 42 264 0 0% 0 0 0 8.909107
lee (click) 282858 259179 49 691 0 0% 0 0 0 22.071266
nbody (click) 18283 17348 11 189 0 0% 0 0 0 5.573471
optcarrot (click) 314630 268142 194 4242 32 0% 0 0 0 100.428342
rack (click) 240796 207088 31 304 0 0% 0 0 0 8.979032
ruby-json (click) 27788 25201 12 203 0 0% 0 0 0 6.160438
rubykon (click) 128662 101831 144 1471 3 0% 0 0 0 41.395027
tinygql (click) 278942 237473 63 773 5 0% 0 0 0 22.402305
30k_ifelse (click) 4909644 4374870 9264 50817 0 0% 0 0 0 1382.222017
30k_methods (click) 1850351 1594387 5782 19371 0 0% 0 0 0 492.774282
cfunc_itself (click) 7868 6931 9 73 0 0% 0 0 0 2.413304
fib (click) 5044 5012 8 49 0 0% 0 0 0 1.861937
getivar (click) 6179 6402 8 74 0 0% 0 0 0 2.145035
keyword_args (click) 8481 7140 10 75 0 0% 0 0 0 2.572323
respond_to (click) 8611 8551 9 88 0 0% 0 0 0 2.734721
setivar (click) 5330 4983 8 54 0 0% 0 0 0 1.801062
setivar_object (click) 5668 5003 8 54 0 0% 0 0 0 1.868256
setivar_young (click) 6435 5792 9 62 0 0% 0 0 0 2.103011
str_concat (click) 8079 7814 11 87 0 0% 0 0 0 2.765437
throw (click) 7723 6444 10 69 0 0% 0 0 0 2.335083

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.