Haxe Versus Ruby benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

fasta

Input: 250000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
ruby 6.rb 500ms 1.9ms 288.0MB 350ms 137ms ruby/yjit 3.1.0
ruby 6.rb 516ms 2.3ms 31.5MB 487ms 13ms ruby 3.1.0
ruby 6.rb 598ms 42ms 31.7MB 947ms 87ms ruby/mjit 3.1.0
haxe 1.hx 1486ms 180ms 3.8MB 763ms 213ms haxe/hashlink 1.12.0
ruby 6.rb 3086ms 621ms 660.9MB 2347ms 450ms truffleruby 21.3.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
haxe 1.hx 4.3ms 0.7ms 3.2MB 0ms 0ms haxe/hashlink 1.12.0
ruby 1.rb 34ms 3.8ms 117.6MB 22ms 10ms truffleruby 21.3.0
ruby 1.rb 75ms 0.9ms 30.3MB 46ms 14ms ruby 3.1.0
ruby 1.rb 229ms 2.6ms 286.9MB 78ms 136ms ruby/yjit 3.1.0
ruby 1.rb 411ms 9.5ms 30.6MB 544ms 44ms ruby/mjit 3.1.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
ruby 2.rb 1206ms 7.5ms 553.3MB 1440ms 230ms truffleruby 21.3.0
haxe 1.hx 3017ms 247ms 3.3MB 3007ms 0ms haxe/hashlink 1.12.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
haxe 1.hx 291ms 1.0ms 3.3MB 280ms 0ms haxe/hashlink 1.12.0
ruby 2.rb 466ms 4.9ms 521.4MB 680ms 183ms truffleruby 21.3.0
ruby 2.rb 2345ms 14ms 287.1MB 2193ms 137ms ruby/yjit 3.1.0
ruby 2.rb 2620ms 15ms 30.5MB 4613ms 170ms ruby/mjit 3.1.0
ruby 2.rb 3253ms 14ms 30.2MB 3233ms 10ms ruby 3.1.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
haxe 1.hx 63ms 0.5ms 3.3MB 50ms 0ms haxe/hashlink 1.12.0
ruby 2.rb 324ms 2.2ms 429.1MB 420ms 160ms truffleruby 21.3.0
ruby 2.rb 655ms 6.0ms 287.1MB 510ms 130ms ruby/yjit 3.1.0
ruby 2.rb 709ms 2.8ms 30.3MB 683ms 7ms ruby 3.1.0
ruby 2.rb 1068ms 13ms 30.6MB 1980ms 73ms ruby/mjit 3.1.0

spectral-norm

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
haxe 1.hx 859ms 2.3ms 3.7MB 850ms 0ms haxe/hashlink 1.12.0
ruby 4.rb 1241ms 18ms 641.0MB 1777ms 280ms truffleruby 21.3.0
ruby 4.rb 3458ms 15ms 287.4MB 3300ms 143ms ruby/yjit 3.1.0
ruby 4.rb 3819ms 16ms 31.1MB 4530ms 107ms ruby/mjit 3.1.0