Acton VS Ruby benchmarks

Current benchmark data was generated on Fri Aug 01 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 1486ms 2574ms 801.2MB 6400ms 613ms truffleruby 24.2.2
ruby 1.rb 4961ms 19ms 109.4MB 4863ms 83ms ruby/yjit 3.4.5
acton 1.act timeout 0.0ms 67.2MB 5870ms 87ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 70.0MB 4943ms 43ms ruby 3.4.5

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1.rb 504ms 1.1ms 20.3MB 480ms 10ms ruby/yjit 3.4.5
ruby 1-m.rb 528ms 58ms 407.2MB 1043ms 157ms truffleruby 24.2.2
acton 1.act 826ms 31ms 12.1MB 957ms 60ms actonc 0.26.0
ruby 1.rb 932ms 5.8ms 19.5MB 913ms 7ms ruby 3.4.5

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 232ms 12ms 8.0MB 210ms 33ms actonc 0.26.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 73ms 0.7ms 6.0MB 60ms 10ms actonc 0.26.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.6ms 0.1ms 4.4MB 0ms 0ms actonc 0.26.0
ruby 1.rb 35ms 0.6ms 141.9MB 12ms 28ms truffleruby 24.2.2
ruby 1.rb 50ms 0.8ms 12.8MB 36ms 4ms ruby 3.4.5
ruby 1.rb 51ms 1.7ms 13.0MB 36ms 4ms ruby/yjit 3.4.5

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3354ms 208ms 84.5MB 3730ms 60ms actonc 0.26.0
ruby 1-m.rb 3864ms 19ms 565.6MB 9860ms 350ms truffleruby 24.2.2
ruby 1.rb timeout 0.0ms 94.1MB 4937ms 47ms ruby 3.4.5
ruby 1.rb timeout 0.0ms 94.8MB 4940ms 50ms ruby/yjit 3.4.5

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 703ms 20ms 23.8MB 760ms 40ms actonc 0.26.0
ruby 1-m.rb 2027ms 88ms 571.0MB 5207ms 273ms truffleruby 24.2.2
ruby 1.rb 3296ms 19ms 38.3MB 3260ms 20ms ruby/yjit 3.4.5
ruby 1.rb 4401ms 19ms 37.8MB 4363ms 20ms ruby 3.4.5

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act timeout 0.0ms 560.8MB 6650ms 90ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 325.3MB 4840ms 140ms ruby 3.4.5
ruby 1.rb timeout 0.0ms 327.0MB 4847ms 140ms ruby/yjit 3.4.5
ruby 1.rb timeout 0.0ms 737.6MB 5057ms 157ms truffleruby 24.2.2

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 1694ms 36ms 474.9MB 2407ms 170ms truffleruby 24.2.2
acton 1.act 2393ms 5.2ms 192.5MB 2880ms 50ms actonc 0.26.0
ruby 1.rb 3393ms 45ms 131.6MB 3303ms 70ms ruby/yjit 3.4.5
ruby 1.rb 4458ms 22ms 131.0MB 4367ms 77ms ruby 3.4.5

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 3528ms 126ms 6.8MB 3530ms 2533ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 130.1MB 4833ms 153ms ruby 3.4.5
ruby 1.rb timeout 0.0ms 130.9MB 4840ms 147ms ruby/yjit 3.4.5
ruby 1.rb timeout 0.0ms 451.7MB 13370ms 400ms truffleruby 24.2.2

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 944ms 33ms 6.2MB 863ms 740ms actonc 0.26.0
ruby 1-m.rb 1509ms 109ms 384.9MB 4013ms 193ms truffleruby 24.2.2
ruby 1.rb 1759ms 8.3ms 130.9MB 1633ms 113ms ruby/yjit 3.4.5
ruby 1.rb 1782ms 5.6ms 130.0MB 1650ms 123ms ruby 3.4.5