Acton VS C# benchmarks

Current benchmark data was generated on Sun Dec 01 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
csharp 1.cs 960ms 14ms 181.9MB 970ms 120ms dotnet/aot 9.0.100
csharp 1.cs 1111ms 56ms 201.7MB 1013ms 177ms dotnet 9.0.100
csharp 1.cs 1775ms 93ms 101.7MB 2017ms 210ms mono 6.12.0
acton 1.act timeout 0.0ms 67.0MB 5933ms 90ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 134ms 12ms 40.8MB 70ms 47ms dotnet/aot 9.0.100
csharp 1.cs 145ms 2.2ms 48.1MB 120ms 13ms mono 6.12.0
csharp 1.cs 202ms 6.0ms 58.2MB 147ms 47ms dotnet 9.0.100
acton 1.act 842ms 30ms 12.1MB 970ms 73ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 262ms 23ms 8.7MB 243ms 53ms actonc 0.24.1
csharp 1.cs 4076ms 2.4ms 24.2MB 4047ms 13ms dotnet/aot 9.0.100
csharp 1.cs 4962ms 5.9ms 43.5MB 4920ms 33ms dotnet 9.0.100

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 95ms 11ms 5.5MB 73ms 30ms actonc 0.24.1
csharp 1.cs 677ms 0.7ms 20.4MB 660ms 3ms dotnet/aot 9.0.100
csharp 1.cs 871ms 0.8ms 38.1MB 857ms 7ms dotnet 9.0.100

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 4.2ms 0.4ms 4.0MB 0ms 0ms actonc 0.24.1
csharp 1.cs 9.1ms 5.1ms 13.5MB 0ms 0ms dotnet/aot 9.0.100
csharp 1.cs 32ms 0.8ms 23.7MB 20ms 0ms mono 6.12.0
csharp 1.cs 37ms 0.4ms 32.6MB 20ms 4ms dotnet 9.0.100

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 562ms 1.0ms 123.8MB 487ms 100ms dotnet/aot 9.0.100
csharp 1.cs 592ms 5.3ms 153.5MB 543ms 123ms dotnet/aot 9.0.100
csharp 2.cs 703ms 2.1ms 142.3MB 653ms 90ms dotnet 9.0.100
csharp 1.cs 777ms 8.8ms 172.2MB 700ms 137ms dotnet 9.0.100
csharp 1.cs 1424ms 29ms 146.6MB 1683ms 207ms mono 6.12.0
acton 1.act 3348ms 28ms 104.1MB 3660ms 47ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 143ms 0.7ms 65.3MB 103ms 37ms dotnet/aot 9.0.100
csharp 1.cs 159ms 1.7ms 81.8MB 110ms 60ms dotnet/aot 9.0.100
csharp 1.cs 269ms 7.6ms 69.4MB 233ms 40ms mono 6.12.0
csharp 2.cs 272ms 10ms 84.7MB 233ms 33ms dotnet 9.0.100
csharp 1.cs 275ms 3.5ms 99.2MB 240ms 63ms dotnet 9.0.100
acton 1.act 727ms 21ms 30.5MB 773ms 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 352ms 5.4ms 53.0MB 323ms 13ms dotnet/aot 9.0.100
csharp 1.cs 382ms 18ms 76.9MB 350ms 20ms dotnet 9.0.100
csharp 2.cs 396ms 2.5ms 39.9MB 377ms 7ms dotnet 9.0.100
csharp 2.cs 426ms 2.0ms 21.8MB 407ms 0ms dotnet/aot 9.0.100
csharp 1.cs 555ms 7.7ms 87.7MB 530ms 10ms mono 6.12.0
csharp 2.cs 1860ms 3.7ms 29.4MB 1840ms 7ms mono 6.12.0
acton 1.act timeout 0.0ms 561.0MB 6780ms 90ms actonc 0.24.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 69ms 2.0ms 25.5MB 50ms 7ms dotnet/aot 9.0.100
csharp 1.cs 105ms 4.4ms 45.3MB 77ms 17ms dotnet 9.0.100
csharp 2.cs 111ms 1.2ms 17.8MB 93ms 0ms dotnet/aot 9.0.100
csharp 2.cs 128ms 1.6ms 36.1MB 113ms 0ms dotnet 9.0.100
csharp 1.cs 149ms 4.9ms 40.2MB 133ms 3ms mono 6.12.0
csharp 2.cs 482ms 4.3ms 23.1MB 467ms 7ms mono 6.12.0
acton 1.act 2372ms 19ms 192.6MB 2880ms 53ms 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 3055ms 71ms 6.1MB 2737ms 2097ms actonc 0.24.1
csharp 1.cs 3219ms 8.8ms 21.8MB 3090ms 130ms dotnet/aot 9.0.100
csharp 1.cs 3623ms 63ms 44.3MB 3610ms 137ms dotnet 9.0.100

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 760ms 6.6ms 21.2MB 727ms 20ms dotnet/aot 9.0.100
acton 1-m.act 882ms 34ms 7.6MB 747ms 613ms actonc 0.24.1
csharp 1.cs 983ms 4.7ms 44.0MB 1063ms 43ms dotnet 9.0.100