Acton VS Nim benchmarks

Current benchmark data was generated on Tue Dec 31 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
nim 2.nim 741ms 8.3ms 34.9MB 727ms 0ms nim 2.2.0
nim 2.nim 919ms 4.1ms 34.7MB 900ms 7ms nim/clang 2.2.0
acton 1.act timeout 0.0ms 68.8MB 5927ms 67ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 2.nim 67ms 0.5ms 5.5MB 57ms 0ms nim 2.2.0
nim 2.nim 85ms 2.2ms 5.8MB 77ms 0ms nim/clang 2.2.0
acton 1.act 794ms 30ms 13.9MB 923ms 60ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 258ms 21ms 7.0MB 237ms 60ms actonc 0.24.1

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 90ms 2.2ms 7.2MB 73ms 33ms actonc 0.24.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 1.nim 1.0ms 0.0ms 1.6MB 0ms 0ms nim 2.2.0
nim 1.nim 1.1ms 0.1ms 1.8MB 0ms 0ms nim/clang 2.2.0
acton 1.act 3.6ms 0.3ms 4.1MB 0ms 0ms actonc 0.24.1

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 1.nim 520ms 10ms 34.9MB 497ms 7ms nim 2.2.0
nim 1.nim 578ms 6.2ms 34.7MB 553ms 10ms nim/clang 2.2.0
acton 1.act 3058ms 12ms 101.9MB 3330ms 47ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 1.nim 112ms 2.9ms 9.6MB 100ms 0ms nim 2.2.0
nim 1.nim 124ms 3.0ms 9.9MB 110ms 0ms nim/clang 2.2.0
acton 1.act 676ms 47ms 32.3MB 707ms 20ms actonc 0.24.1

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 1.nim 252ms 0.5ms 41.5MB 240ms 0ms nim 2.2.0
nim 1.nim 293ms 2.6ms 41.8MB 280ms 0ms nim/clang 2.2.0
acton 1.act timeout 0.0ms 561.0MB 6733ms 113ms actonc 0.24.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
nim 1.nim 53ms 2.2ms 11.5MB 40ms 0ms nim 2.2.0
nim 1.nim 60ms 3.6ms 11.8MB 50ms 0ms nim/clang 2.2.0
acton 1.act 2260ms 73ms 229.8MB 2830ms 30ms actonc 0.24.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 2853ms 97ms 8.6MB 2510ms 1970ms actonc 0.24.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1-m.act 811ms 6.4ms 5.8MB 710ms 577ms actonc 0.24.1