Acton VS C# benchmarks

Current benchmark data was generated on Mon Mar 31 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
csharp 1.cs 909ms 8.6ms 192.3MB 903ms 150ms dotnet 9.0.202
csharp 1.cs 978ms 14ms 172.2MB 970ms 130ms dotnet/aot 9.0.202
csharp 1.cs 1684ms 30ms 107.4MB 1873ms 210ms mono 6.12.0
acton 1.act timeout 0.0ms 67.0MB 5977ms 77ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 120ms 7.8ms 31.5MB 93ms 27ms dotnet/aot 9.0.202
csharp 1.cs 142ms 0.8ms 44.3MB 120ms 13ms mono 6.12.0
csharp 1.cs 190ms 1.3ms 50.5MB 147ms 40ms dotnet 9.0.202
acton 1.act 832ms 29ms 12.1MB 970ms 70ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 261ms 7.1ms 7.1MB 230ms 70ms actonc 0.24.1
csharp 1.cs 4086ms 26ms 18.1MB 4060ms 10ms dotnet/aot 9.0.202
csharp 1.cs 4913ms 49ms 37.9MB 4883ms 17ms dotnet 9.0.202

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 97ms 12ms 5.4MB 77ms 30ms actonc 0.24.1
csharp 1.cs 675ms 3.5ms 14.6MB 653ms 3ms dotnet/aot 9.0.202
csharp 1.cs 854ms 1.8ms 33.9MB 833ms 13ms dotnet 9.0.202

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.6ms 0.2ms 3.9MB 0ms 0ms actonc 0.24.1
csharp 1.cs 7.6ms 2.7ms 9.6MB 0ms 0ms dotnet/aot 9.0.202
csharp 1.cs 32ms 0.6ms 21.3MB 20ms 0ms mono 6.12.0
csharp 1.cs 45ms 3.1ms 26.3MB 22ms 8ms dotnet 9.0.202

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 552ms 23ms 120.8MB 497ms 93ms dotnet/aot 9.0.202
csharp 1.cs 621ms 12ms 154.1MB 560ms 130ms dotnet/aot 9.0.202
csharp 2.cs 668ms 39ms 137.8MB 610ms 100ms dotnet 9.0.202
csharp 1.cs 725ms 42ms 168.6MB 643ms 143ms dotnet 9.0.202
csharp 1.cs 1248ms 3.8ms 142.4MB 1437ms 147ms mono 6.12.0
acton 1.act 3219ms 15ms 101.8MB 3503ms 50ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 135ms 4.1ms 58.8MB 110ms 30ms dotnet/aot 9.0.202
csharp 1.cs 152ms 3.0ms 72.5MB 117ms 50ms dotnet/aot 9.0.202
csharp 2.cs 257ms 7.3ms 72.8MB 220ms 40ms dotnet 9.0.202
csharp 1.cs 258ms 6.4ms 67.4MB 230ms 33ms mono 6.12.0
csharp 1.cs 315ms 37ms 91.1MB 237ms 63ms dotnet 9.0.202
acton 1.act 691ms 24ms 30.4MB 727ms 23ms actonc 0.24.1

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 292ms 3.4ms 78.8MB 270ms 10ms dotnet/aot 9.0.202
csharp 1.cs 323ms 2.9ms 96.2MB 300ms 13ms dotnet 9.0.202
csharp 2.cs 392ms 2.6ms 35.6MB 370ms 10ms dotnet 9.0.202
csharp 2.cs 423ms 4.5ms 17.6MB 410ms 0ms dotnet/aot 9.0.202
csharp 1.cs 533ms 6.3ms 84.0MB 513ms 7ms mono 6.12.0
csharp 2.cs 1870ms 2.9ms 29.8MB 1853ms 0ms mono 6.12.0
acton 1.act timeout 0.0ms 560.9MB 6817ms 97ms actonc 0.24.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 64ms 1.5ms 25.1MB 50ms 3ms dotnet/aot 9.0.202
csharp 1.cs 100ms 4.1ms 42.5MB 80ms 10ms dotnet 9.0.202
csharp 2.cs 106ms 0.6ms 12.0MB 97ms 0ms dotnet/aot 9.0.202
csharp 2.cs 127ms 5.4ms 30.0MB 103ms 10ms dotnet 9.0.202
csharp 1.cs 144ms 2.3ms 38.3MB 130ms 0ms mono 6.12.0
csharp 2.cs 484ms 8.9ms 21.1MB 470ms 0ms mono 6.12.0
acton 1.act 2313ms 3.9ms 192.3MB 2840ms 43ms 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 2906ms 70ms 6.6MB 2733ms 2017ms actonc 0.24.1
csharp 1.cs 3216ms 8.5ms 13.9MB 3117ms 97ms dotnet/aot 9.0.202
csharp 1.cs 3599ms 79ms 38.3MB 3620ms 123ms dotnet 9.0.202

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 753ms 3.9ms 13.4MB 720ms 23ms dotnet/aot 9.0.202
acton 1-m.act 884ms 28ms 5.5MB 803ms 650ms actonc 0.24.1
csharp 1.cs 980ms 8.6ms 37.5MB 1067ms 33ms dotnet 9.0.202