Acton VS Ruby benchmarks

Current benchmark data was generated on Tue Mar 25 2025, 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 1604ms 2779ms 798.2MB 6547ms 637ms truffleruby 24.2.0
ruby 1.rb 4929ms 11ms 110.0MB 4830ms 87ms ruby/yjit 3.4.2
acton 1.act timeout 0.0ms 67.1MB 5977ms 80ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 70.6MB 4943ms 43ms ruby 3.4.2

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1.rb 497ms 4.3ms 20.3MB 473ms 10ms ruby/yjit 3.4.2
ruby 1-m.rb 605ms 52ms 425.3MB 1203ms 173ms truffleruby 24.2.0
acton 1.act 835ms 22ms 12.0MB 973ms 73ms actonc 0.24.1
ruby 1.rb 935ms 7.2ms 19.6MB 910ms 10ms ruby 3.4.2

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 265ms 20ms 7.1MB 230ms 70ms actonc 0.24.1

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 101ms 17ms 5.3MB 83ms 27ms 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.6ms 0.3ms 3.9MB 0ms 0ms actonc 0.24.1
ruby 1.rb 38ms 1.6ms 142.2MB 14ms 28ms truffleruby 24.2.0
ruby 1.rb 52ms 1.2ms 12.9MB 38ms 4ms ruby 3.4.2
ruby 1.rb 54ms 2.1ms 13.0MB 40ms 2ms ruby/yjit 3.4.2

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3317ms 13ms 102.0MB 3620ms 57ms actonc 0.24.1
ruby 1-m.rb 3955ms 22ms 606.4MB 10090ms 377ms truffleruby 24.2.0
ruby 1.rb timeout 0.0ms 94.3MB 4940ms 50ms ruby 3.4.2
ruby 1.rb timeout 0.0ms 94.1MB 4933ms 53ms ruby/yjit 3.4.2

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 715ms 22ms 30.5MB 753ms 33ms actonc 0.24.1
ruby 1-m.rb 2157ms 107ms 616.5MB 5503ms 283ms truffleruby 24.2.0
ruby 1.rb 3496ms 172ms 38.3MB 3457ms 23ms ruby/yjit 3.4.2
ruby 1.rb 4445ms 2.9ms 37.8MB 4413ms 17ms ruby 3.4.2

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act timeout 0.0ms 561.0MB 6737ms 120ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 325.4MB 4847ms 137ms ruby 3.4.2
ruby 1.rb timeout 0.0ms 327.0MB 4840ms 143ms ruby/yjit 3.4.2
ruby 1.rb timeout 0.0ms 707.0MB 5073ms 153ms truffleruby 24.2.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 1762ms 23ms 498.0MB 2533ms 183ms truffleruby 24.2.0
acton 1.act 2404ms 16ms 192.3MB 2937ms 40ms actonc 0.24.1
ruby 1.rb 3732ms 397ms 131.8MB 3640ms 77ms ruby/yjit 3.4.2
ruby 1.rb 4536ms 21ms 131.1MB 4440ms 80ms ruby 3.4.2

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 3057ms 164ms 6.7MB 2860ms 2093ms actonc 0.24.1
ruby 1.rb timeout 0.0ms 46.7MB 4920ms 67ms ruby 3.4.2
ruby 1.rb timeout 0.0ms 123.9MB 4887ms 100ms ruby/yjit 3.4.2
ruby 1.rb timeout 0.0ms 457.3MB 13323ms 400ms truffleruby 24.2.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 870ms 31ms 5.7MB 770ms 633ms actonc 0.24.1
ruby 1.rb 1685ms 6.0ms 46.0MB 1633ms 37ms ruby 3.4.2
ruby 1-m.rb 1729ms 252ms 405.1MB 4537ms 220ms truffleruby 24.2.0
ruby 1.rb 1798ms 0.8ms 127.8MB 1647ms 133ms ruby/yjit 3.4.2