Acton VS C# benchmarks

Current benchmark data was generated on Mon May 19 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 937ms 10ms 185.4MB 937ms 137ms dotnet 9.0.300
csharp 1.cs 1089ms 203ms 175.6MB 1003ms 140ms dotnet/aot 9.0.300
csharp 1.cs 1663ms 38ms 98.4MB 1863ms 183ms mono 6.12.0
acton 1.act timeout 0.0ms 67.0MB 5913ms 87ms actonc 0.25.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 142ms 2.5ms 44.0MB 123ms 10ms mono 6.12.0
csharp 1.cs 161ms 19ms 31.8MB 100ms 30ms dotnet/aot 9.0.300
csharp 1.cs 203ms 9.4ms 50.0MB 160ms 37ms dotnet 9.0.300
acton 1.act 866ms 49ms 12.1MB 997ms 63ms actonc 0.25.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 226ms 10.0ms 8.0MB 207ms 30ms actonc 0.25.0
csharp 1.cs 4097ms 4.2ms 18.3MB 4073ms 10ms dotnet/aot 9.0.300
csharp 1.cs 4958ms 17ms 37.6MB 4930ms 20ms dotnet 9.0.300

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 82ms 15ms 5.8MB 63ms 13ms actonc 0.25.0
csharp 1.cs 679ms 2.3ms 14.5MB 660ms 7ms dotnet/aot 9.0.300
csharp 1.cs 869ms 4.4ms 33.8MB 847ms 10ms dotnet 9.0.300

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.8ms 0.2ms 3.9MB 0ms 0ms actonc 0.25.0
csharp 1.cs 7.5ms 2.9ms 9.6MB 0ms 0ms dotnet/aot 9.0.300
csharp 1.cs 32ms 1.0ms 23.9MB 20ms 2ms mono 6.12.0
csharp 1.cs 35ms 0.3ms 26.1MB 20ms 0ms dotnet 9.0.300

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 537ms 11ms 121.0MB 490ms 90ms dotnet/aot 9.0.300
csharp 1.cs 614ms 11ms 143.3MB 563ms 120ms dotnet/aot 9.0.300
csharp 2.cs 684ms 6.9ms 136.2MB 630ms 97ms dotnet 9.0.300
csharp 1.cs 764ms 21ms 161.6MB 710ms 117ms dotnet 9.0.300
csharp 1.cs 1297ms 5.6ms 140.0MB 1507ms 167ms mono 6.12.0
acton 1.act 3359ms 11ms 84.5MB 3770ms 57ms actonc 0.25.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 137ms 9.3ms 57.3MB 110ms 30ms dotnet/aot 9.0.300
csharp 1.cs 158ms 4.3ms 74.7MB 120ms 50ms dotnet/aot 9.0.300
csharp 2.cs 262ms 6.1ms 75.2MB 227ms 37ms dotnet 9.0.300
csharp 1.cs 266ms 1.9ms 69.4MB 240ms 37ms mono 6.12.0
csharp 1.cs 272ms 2.6ms 88.1MB 243ms 53ms dotnet 9.0.300
acton 1.act 759ms 44ms 23.8MB 833ms 33ms actonc 0.25.0

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 325ms 6.5ms 78.7MB 307ms 3ms dotnet/aot 9.0.300
csharp 1.cs 361ms 8.4ms 96.1MB 333ms 13ms dotnet 9.0.300
csharp 2.cs 394ms 2.3ms 17.5MB 377ms 0ms dotnet/aot 9.0.300
csharp 2.cs 399ms 6.4ms 35.4MB 380ms 7ms dotnet 9.0.300
csharp 1.cs 560ms 6.0ms 82.0MB 540ms 10ms mono 6.12.0
csharp 2.cs 1908ms 73ms 29.5MB 1887ms 3ms mono 6.12.0
acton 1.act timeout 0.0ms 560.9MB 6627ms 93ms actonc 0.25.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 63ms 0.6ms 24.8MB 47ms 0ms dotnet/aot 9.0.300
csharp 1.cs 99ms 2.3ms 42.3MB 77ms 7ms dotnet 9.0.300
csharp 2.cs 102ms 1.9ms 11.9MB 90ms 0ms dotnet/aot 9.0.300
csharp 2.cs 129ms 0.7ms 29.9MB 113ms 7ms dotnet 9.0.300
csharp 1.cs 144ms 1.4ms 36.4MB 130ms 3ms mono 6.12.0
csharp 2.cs 494ms 11ms 21.5MB 480ms 0ms mono 6.12.0
acton 1.act 2461ms 15ms 192.4MB 2957ms 57ms actonc 0.25.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 3259ms 15ms 13.9MB 3147ms 107ms dotnet/aot 9.0.300
acton 1-m.act 3454ms 71ms 7.0MB 3500ms 2400ms actonc 0.25.0
csharp 1.cs 3630ms 50ms 38.0MB 3650ms 117ms dotnet 9.0.300

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 761ms 6.7ms 13.5MB 727ms 20ms dotnet/aot 9.0.300
acton 1-m.act 970ms 26ms 6.0MB 937ms 717ms actonc 0.25.0
csharp 1.cs 990ms 7.0ms 37.5MB 1083ms 37ms dotnet 9.0.300