Acton VS Ruby benchmarks

Current benchmark data was generated on Sun Jun 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 4549ms 73ms 838.0MB 6403ms 490ms truffleruby 24.2.1
ruby 1.rb 4697ms 113ms 110.0MB 4607ms 77ms ruby/yjit 3.4.4
acton 1.act timeout 0.0ms 67.0MB 5877ms 77ms actonc 0.25.0
ruby 1.rb timeout 0.0ms 70.4MB 4953ms 37ms ruby 3.4.4

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1.rb 489ms 7.3ms 20.3MB 463ms 10ms ruby/yjit 3.4.4
ruby 1-m.rb 502ms 12ms 405.6MB 983ms 153ms truffleruby 24.2.1
acton 1.act 814ms 23ms 12.0MB 937ms 67ms actonc 0.25.0
ruby 1.rb 948ms 7.8ms 19.5MB 927ms 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 220ms 2.2ms 8.0MB 197ms 33ms actonc 0.25.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 77ms 8.3ms 6.0MB 57ms 20ms actonc 0.25.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.4ms 0.3ms 3.9MB 0ms 0ms actonc 0.25.0
ruby 1.rb 34ms 0.5ms 141.5MB 10ms 26ms truffleruby 24.2.1
ruby 1.rb 50ms 1.4ms 12.9MB 38ms 2ms ruby/yjit 3.4.4
ruby 1.rb 51ms 1.7ms 12.8MB 36ms 2ms ruby 3.4.4

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3258ms 55ms 84.4MB 3627ms 60ms actonc 0.25.0
ruby 1-m.rb 4042ms 349ms 544.7MB 10327ms 353ms truffleruby 24.2.1
ruby 1.rb timeout 0.0ms 93.5MB 4940ms 47ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 97.4MB 4940ms 47ms ruby/yjit 3.4.4

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 697ms 11ms 23.8MB 757ms 33ms actonc 0.25.0
ruby 1-m.rb 2018ms 52ms 569.1MB 5267ms 243ms truffleruby 24.2.1
ruby 1.rb 3259ms 25ms 38.3MB 3220ms 20ms ruby/yjit 3.4.4
ruby 1.rb 4347ms 35ms 37.6MB 4310ms 20ms 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 6633ms 100ms actonc 0.25.0
ruby 1.rb timeout 0.0ms 325.3MB 4850ms 133ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 327.0MB 4847ms 140ms ruby/yjit 3.4.4
ruby 1.rb timeout 0.0ms 731.9MB 5060ms 163ms truffleruby 24.2.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
ruby 1-m.rb 1696ms 5.1ms 473.6MB 2500ms 160ms truffleruby 24.2.1
acton 1.act 2432ms 41ms 229.8MB 2987ms 43ms actonc 0.25.0
ruby 1.rb 3471ms 137ms 131.8MB 3380ms 80ms ruby/yjit 3.4.4
ruby 1.rb 4452ms 24ms 131.1MB 4367ms 70ms 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 3374ms 156ms 6.8MB 3427ms 2370ms actonc 0.25.0
ruby 1.rb timeout 0.0ms 130.3MB 4870ms 113ms ruby 3.4.4
ruby 1.rb timeout 0.0ms 131.1MB 4837ms 147ms ruby/yjit 3.4.4
ruby 1.rb timeout 0.0ms 465.0MB 13420ms 380ms truffleruby 24.2.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 965ms 82ms 6.1MB 883ms 747ms actonc 0.25.0
ruby 1-m.rb 1723ms 255ms 383.7MB 4550ms 200ms truffleruby 24.2.1
ruby 1.rb 1760ms 71ms 130.8MB 1653ms 93ms ruby/yjit 3.4.4
ruby 1.rb 1813ms 6.5ms 130.4MB 1677ms 123ms ruby 3.4.4