All Ruby benchmarks

Current benchmark data was generated on Sun Oct 17 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 549ms 6.7ms 37.3MB 517ms 17ms ruby 3.0.2
1.rb 582ms 80ms 33.8MB 490ms 30ms ruby/jit 3.0.2
1.rb 1605ms 115ms 639.8MB 1693ms 273ms truffleruby 21.2.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 4304ms 57ms 80.0MB 4227ms 57ms ruby 3.0.2
1.rb 4322ms 37ms 96.7MB 4590ms 117ms ruby/jit 3.0.2

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 281ms 2.7ms 42.1MB 247ms 20ms ruby 3.0.2
1.rb 462ms 13ms 42.0MB 460ms 40ms ruby/jit 3.0.2

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
6.rb 3600ms 30ms 83.0MB 5627ms 307ms ruby/jit 3.0.2

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
6.rb 511ms 3.9ms 30.9MB 473ms 23ms ruby 3.0.2
6.rb 547ms 6.5ms 30.9MB 423ms 43ms ruby/jit 3.0.2
6.rb 2663ms 632ms 662.1MB 3327ms 597ms truffleruby 21.2.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 35ms 4.8ms 113.3MB 16ms 18ms truffleruby 21.2.0
1.rb 71ms 1.5ms 29.7MB 50ms 8ms ruby 3.0.2
1.rb 459ms 16ms 78.9MB 316ms 48ms ruby/jit 3.0.2

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 455ms 31ms 56.0MB 403ms 17ms ruby 3.0.2
1.rb 467ms 6.5ms 103.3MB 577ms 43ms ruby/jit 3.0.2

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 3917ms 15ms 188.1MB 3807ms 97ms ruby 3.0.2
1.rb 3941ms 6.3ms 188.2MB 4180ms 147ms ruby/jit 3.0.2

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rb 1471ms 14ms 569.6MB 1713ms 230ms truffleruby 21.2.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rb 595ms 11ms 568.9MB 853ms 213ms truffleruby 21.2.0
2.rb 2588ms 56ms 103.5MB 4663ms 183ms ruby/jit 3.0.2
2.rb 3292ms 29ms 29.8MB 3267ms 13ms ruby 3.0.2

pidigits

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rb 2533ms 54ms 654.5MB 4477ms 337ms truffleruby 21.2.0
1.rb 2911ms 3.3ms 158.4MB 2827ms 70ms ruby 3.0.2
1.rb 3115ms 25ms 158.4MB 5433ms 377ms ruby/jit 3.0.2

spectral-norm

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.rb 1809ms 343ms 631.6MB 2503ms 330ms truffleruby 21.2.0
4.rb 3830ms 15ms 80.2MB 4590ms 120ms ruby/jit 3.0.2