Acton VS Ruby benchmarks

Current benchmark data was generated on Mon Dec 30 2024, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 4559ms 99ms 826.4MB 6440ms 460ms truffleruby 24.1.1
ruby 1.rb 4582ms 104ms 110.1MB 4487ms 73ms ruby/yjit 3.4.1
acton 1.act timeout 0.0ms 67.0MB 5963ms 77ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 70.5MB 4947ms 37ms ruby 3.4.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1.rb 478ms 0.9ms 20.4MB 450ms 20ms ruby/yjit 3.4.1
ruby 1-m.rb 600ms 8.2ms 437.8MB 1227ms 167ms truffleruby 24.1.1
acton 1.act 829ms 36ms 12.0MB 960ms 70ms actonc 0.24.1
ruby 1.rb 940ms 8.6ms 19.6MB 913ms 10ms ruby 3.4.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 273ms 7.1ms 9.0MB 240ms 77ms actonc 0.24.1

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 96ms 11ms 5.3MB 77ms 33ms actonc 0.24.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.9ms 0.2ms 8.3MB 0ms 0ms actonc 0.24.1
ruby 1.rb 39ms 0.5ms 165.1MB 12ms 32ms truffleruby 24.1.1
ruby 1.rb 51ms 1.2ms 13.1MB 38ms 2ms ruby/yjit 3.4.1
ruby 1.rb 53ms 0.7ms 12.9MB 40ms 4ms ruby 3.4.1

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3310ms 185ms 101.9MB 3583ms 63ms actonc 0.24.1
ruby 1-m.rb 4577ms 143ms 578.9MB 11673ms 380ms truffleruby 24.1.1
ruby 1.rb timeout 0.0ms 94.0MB 4940ms 40ms ruby 3.4.1
ruby 1.rb timeout 0.0ms 97.5MB 4920ms 63ms ruby/yjit 3.4.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 699ms 28ms 30.4MB 727ms 37ms actonc 0.24.1
ruby 1-m.rb 2187ms 101ms 525.8MB 5677ms 230ms truffleruby 24.1.1
ruby 1.rb 3238ms 7.5ms 38.4MB 3203ms 17ms ruby/yjit 3.4.1
ruby 1.rb 4306ms 3.3ms 37.8MB 4267ms 23ms ruby 3.4.1

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act timeout 0.0ms 562.9MB 6753ms 110ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 325.4MB 4850ms 133ms ruby 3.4.1
ruby 1.rb timeout 0.0ms 327.1MB 4843ms 133ms ruby/yjit 3.4.1
ruby 1.rb timeout 0.0ms 762.9MB 5063ms 167ms truffleruby 24.1.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 1740ms 47ms 486.8MB 2463ms 153ms truffleruby 24.1.1
acton 1.act 2333ms 30ms 192.4MB 2833ms 50ms actonc 0.24.1
ruby 1.rb 3441ms 129ms 131.9MB 3357ms 70ms ruby/yjit 3.4.1
ruby 1.rb 4493ms 12ms 131.1MB 4407ms 73ms ruby 3.4.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 3082ms 51ms 6.6MB 2720ms 2220ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 46.5MB 4910ms 77ms ruby 3.4.1
ruby 1.rb timeout 0.0ms 47.2MB 4937ms 47ms ruby/yjit 3.4.1
ruby 1.rb timeout 0.0ms 467.9MB 13150ms 400ms truffleruby 24.1.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 868ms 22ms 5.6MB 723ms 653ms actonc 0.24.1
ruby 1.rb 1638ms 12ms 46.1MB 1587ms 37ms ruby 3.4.1
ruby 1.rb 1713ms 72ms 127.8MB 1603ms 93ms ruby/yjit 3.4.1
ruby 1-m.rb 1790ms 18ms 406.6MB 4713ms 200ms truffleruby 24.1.1