Acton VS Go 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
go 1-m.go 2534ms 14ms 41.9MB 5390ms 50ms go 1.23.4
go 1.go 2615ms 48ms 52.2MB 2603ms 0ms tinygo 0.35.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
go 1.go 219ms 1.4ms 6.8MB 210ms 0ms tinygo 0.35.0
go 1-m.go 225ms 0.9ms 7.9MB 373ms 13ms go 1.23.4
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
go 1.go 113ms 2.3ms 8.5MB 107ms 0ms go 1.23.4
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
go 1.go 35ms 1.8ms 8.2MB 27ms 0ms go 1.23.4
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
go 1.go 0.5ms 0.0ms 0.1MB 0ms 0ms tinygo 0.35.0
go 1.go 1.3ms 0.1ms 3.4MB 0ms 0ms go 1.23.4
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
go 1-m.go 1523ms 5.6ms 36.8MB 3107ms 37ms go 1.23.4
go 2-m.go 1741ms 13ms 43.1MB 3667ms 37ms go 1.23.4
go 1.go 1890ms 41ms 52.1MB 1877ms 0ms tinygo 0.35.0
go 2.go 2426ms 14ms 120.4MB 2400ms 10ms tinygo 0.35.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
go 1-m.go 349ms 4.9ms 14.1MB 667ms 23ms go 1.23.4
go 1.go 358ms 5.5ms 13.6MB 347ms 0ms tinygo 0.35.0
go 2-m.go 388ms 1.9ms 14.2MB 777ms 27ms go 1.23.4
go 2.go 523ms 7.2ms 22.8MB 510ms 0ms tinygo 0.35.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
go 1.go 283ms 2.3ms 73.6MB 270ms 0ms go 1.23.4
go 1.go 317ms 10.0ms 43.3MB 307ms 0ms tinygo 0.35.0
go 2.go 413ms 8.6ms 17.3MB 403ms 0ms tinygo 0.35.0
go 2.go 742ms 11ms 21.8MB 727ms 7ms go 1.23.4
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
go 1.go 54ms 2.1ms 21.6MB 43ms 0ms go 1.23.4
go 1.go 65ms 0.1ms 13.3MB 53ms 0ms tinygo 0.35.0
go 2.go 101ms 1.3ms 4.9MB 90ms 0ms tinygo 0.35.0
go 2.go 188ms 1.4ms 5.9MB 177ms 0ms go 1.23.4
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
go 8.go 1054ms 8.1ms 8.5MB 1043ms 0ms go 1.23.4
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
go 8.go 254ms 6.5ms 8.4MB 243ms 0ms go 1.23.4
acton 1-m.act 811ms 6.4ms 5.8MB 710ms 577ms actonc 0.24.1