Acton VS C# benchmarks

Current benchmark data was generated on Thu May 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
csharp 1.cs 943ms 22ms 185.3MB 937ms 150ms dotnet 9.0.203
csharp 1.cs 955ms 17ms 188.9MB 957ms 143ms dotnet/aot 9.0.203
csharp 1.cs 1699ms 20ms 101.5MB 1897ms 217ms mono 6.12.0
acton 1.act timeout 0.0ms 66.9MB 5943ms 87ms actonc 0.25.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 123ms 5.1ms 31.9MB 87ms 33ms dotnet/aot 9.0.203
csharp 1.cs 140ms 0.7ms 44.1MB 117ms 13ms mono 6.12.0
csharp 1.cs 206ms 6.4ms 50.4MB 157ms 37ms dotnet 9.0.203
acton 1.act 824ms 27ms 12.0MB 960ms 70ms actonc 0.25.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 231ms 12ms 8.1MB 207ms 40ms actonc 0.25.0
csharp 1.cs 4174ms 6.8ms 18.4MB 4150ms 10ms dotnet/aot 9.0.203
csharp 1.cs 4970ms 26ms 37.8MB 4940ms 17ms dotnet 9.0.203

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 90ms 15ms 6.0MB 73ms 13ms actonc 0.25.0
csharp 1.cs 690ms 2.1ms 14.5MB 673ms 0ms dotnet/aot 9.0.203
csharp 1.cs 866ms 5.7ms 33.9MB 843ms 10ms dotnet 9.0.203

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.8ms 0.3ms 3.9MB 0ms 0ms actonc 0.25.0
csharp 1.cs 10ms 5.6ms 7.6MB 0ms 0ms dotnet/aot 9.0.203
csharp 1.cs 31ms 1.0ms 21.4MB 20ms 0ms mono 6.12.0
csharp 1.cs 34ms 0.4ms 26.0MB 20ms 2ms dotnet 9.0.203

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 542ms 21ms 121.4MB 490ms 90ms dotnet/aot 9.0.203
csharp 1.cs 603ms 8.7ms 143.3MB 557ms 117ms dotnet/aot 9.0.203
csharp 2.cs 678ms 16ms 136.3MB 627ms 100ms dotnet 9.0.203
csharp 1.cs 761ms 17ms 164.3MB 697ms 130ms dotnet 9.0.203
csharp 1.cs 1306ms 19ms 140.5MB 1507ms 173ms mono 6.12.0
acton 1.act 3256ms 12ms 84.6MB 3660ms 60ms actonc 0.25.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 135ms 2.4ms 57.2MB 110ms 30ms dotnet/aot 9.0.203
csharp 1.cs 157ms 2.1ms 74.5MB 120ms 53ms dotnet/aot 9.0.203
csharp 2.cs 258ms 7.0ms 74.8MB 223ms 40ms dotnet 9.0.203
csharp 1.cs 258ms 0.7ms 69.4MB 233ms 30ms mono 6.12.0
csharp 1.cs 281ms 5.4ms 89.5MB 237ms 57ms dotnet 9.0.203
acton 1.act 693ms 11ms 24.0MB 760ms 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 310ms 3.9ms 78.9MB 290ms 10ms dotnet/aot 9.0.203
csharp 1.cs 355ms 2.4ms 96.3MB 330ms 13ms dotnet 9.0.203
csharp 2.cs 393ms 1.8ms 17.4MB 377ms 0ms dotnet/aot 9.0.203
csharp 2.cs 397ms 1.9ms 35.6MB 380ms 7ms dotnet 9.0.203
csharp 1.cs 550ms 8.4ms 84.0MB 527ms 10ms mono 6.12.0
csharp 2.cs 1862ms 2.9ms 27.5MB 1847ms 0ms mono 6.12.0
acton 1.act timeout 0.0ms 561.0MB 6610ms 93ms actonc 0.25.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 64ms 3.2ms 24.8MB 50ms 7ms dotnet/aot 9.0.203
csharp 1.cs 100ms 1.2ms 42.3MB 80ms 7ms dotnet 9.0.203
csharp 2.cs 101ms 1.3ms 11.9MB 90ms 0ms dotnet/aot 9.0.203
csharp 2.cs 127ms 1.0ms 30.1MB 103ms 10ms dotnet 9.0.203
csharp 1.cs 146ms 1.7ms 38.2MB 130ms 7ms mono 6.12.0
csharp 2.cs 483ms 5.4ms 23.0MB 470ms 0ms mono 6.12.0
acton 1.act 2441ms 6.0ms 192.4MB 2940ms 60ms actonc 0.25.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 3245ms 17ms 14.0MB 3153ms 90ms dotnet/aot 9.0.203
acton 1-m.act 3448ms 37ms 6.8MB 3523ms 2430ms actonc 0.25.0
csharp 1.cs 3618ms 42ms 38.1MB 3630ms 113ms dotnet 9.0.203

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 761ms 5.1ms 13.5MB 720ms 30ms dotnet/aot 9.0.203
acton 1-m.act 960ms 34ms 6.1MB 940ms 687ms actonc 0.25.0
csharp 1.cs 997ms 13ms 37.9MB 1083ms 40ms dotnet 9.0.203