Acton VS Ruby benchmarks

Current benchmark data was generated on Tue Jul 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 4407ms 191ms 804.1MB 6390ms 450ms truffleruby 24.2.1
ruby 1.rb 4955ms 35ms 109.4MB 4853ms 87ms ruby/yjit 3.4.4
acton 1.act timeout 0.0ms 67.0MB 5903ms 87ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 70.5MB 4940ms 40ms ruby 3.4.4

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1.rb 505ms 6.5ms 20.3MB 480ms 10ms ruby/yjit 3.4.4
ruby 1-m.rb 570ms 55ms 424.9MB 1133ms 167ms truffleruby 24.2.1
acton 1.act 825ms 24ms 12.1MB 950ms 73ms actonc 0.26.0
ruby 1.rb 967ms 21ms 19.5MB 943ms 10ms ruby 3.4.4

edigits

Input: 250001

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

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 84ms 19ms 5.9MB 70ms 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.5ms 0.3ms 4.3MB 0ms 0ms actonc 0.26.0
ruby 1.rb 35ms 1.1ms 141.3MB 16ms 24ms truffleruby 24.2.1
ruby 1.rb 52ms 0.9ms 12.8MB 40ms 0ms ruby 3.4.4
ruby 1.rb 52ms 1.2ms 12.9MB 40ms 2ms ruby/yjit 3.4.4

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3298ms 25ms 84.6MB 3703ms 53ms actonc 0.26.0
ruby 1-m.rb 4269ms 456ms 556.4MB 10877ms 377ms truffleruby 24.2.1
ruby 1.rb timeout 0.0ms 93.5MB 4947ms 40ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 97.2MB 4933ms 50ms ruby/yjit 3.4.4

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 725ms 34ms 23.8MB 793ms 33ms actonc 0.26.0
ruby 1-m.rb 1985ms 41ms 547.4MB 5130ms 257ms truffleruby 24.2.1
ruby 1.rb 3266ms 10ms 38.3MB 3233ms 20ms ruby/yjit 3.4.4
ruby 1.rb 4383ms 23ms 37.6MB 4340ms 27ms ruby 3.4.4

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act timeout 0.0ms 560.9MB 6637ms 83ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 325.3MB 4850ms 137ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 327.0MB 4857ms 130ms ruby/yjit 3.4.4
ruby 1.rb timeout 0.0ms 731.6MB 5057ms 170ms truffleruby 24.2.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 1708ms 13ms 494.0MB 2480ms 177ms truffleruby 24.2.1
acton 1.act 2432ms 20ms 192.5MB 2923ms 63ms actonc 0.26.0
ruby 1.rb 3451ms 53ms 131.8MB 3363ms 73ms ruby/yjit 3.4.4
ruby 1.rb 4587ms 13ms 131.1MB 4493ms 77ms ruby 3.4.4

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 3388ms 212ms 6.8MB 3370ms 2387ms actonc 0.26.0
ruby 1.rb timeout 0.0ms 46.4MB 4923ms 63ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 130.8MB 4903ms 83ms ruby/yjit 3.4.4
ruby 1.rb timeout 0.0ms 451.3MB 13403ms 393ms truffleruby 24.2.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 948ms 42ms 6.1MB 900ms 703ms actonc 0.26.0
ruby 1-m.rb 1666ms 261ms 414.4MB 4383ms 213ms truffleruby 24.2.1
ruby 1.rb 1783ms 63ms 130.9MB 1673ms 97ms ruby/yjit 3.4.4
ruby 1.rb 1814ms 58ms 130.3MB 1703ms 93ms ruby 3.4.4