Acton VS C# 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
csharp 1.cs 886ms 4.1ms 166.1MB 870ms 127ms dotnet/aot 9.0.101
csharp 1.cs 889ms 12ms 194.2MB 897ms 133ms dotnet 9.0.101
csharp 1.cs 1646ms 54ms 103.5MB 1847ms 210ms mono 6.12.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
csharp 1.cs 117ms 12ms 45.7MB 77ms 30ms dotnet/aot 9.0.101
csharp 1.cs 136ms 3.4ms 44.2MB 107ms 17ms mono 6.12.0
csharp 1.cs 202ms 3.7ms 66.8MB 143ms 40ms dotnet 9.0.101
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
acton 1.act 258ms 21ms 7.0MB 237ms 60ms actonc 0.24.1
csharp 1.cs 3879ms 27ms 24.0MB 3850ms 13ms dotnet/aot 9.0.101
csharp 1.cs 4710ms 24ms 43.7MB 4687ms 17ms dotnet 9.0.101

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 90ms 2.2ms 7.2MB 73ms 33ms actonc 0.24.1
csharp 1.cs 641ms 1.7ms 20.6MB 620ms 0ms dotnet/aot 9.0.101
csharp 1.cs 830ms 5.3ms 40.1MB 803ms 13ms dotnet 9.0.101

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.6ms 0.3ms 4.1MB 0ms 0ms actonc 0.24.1
csharp 1.cs 18ms 11ms 15.5MB 0ms 0ms dotnet/aot 9.0.101
csharp 1.cs 30ms 0.2ms 23.4MB 18ms 2ms mono 6.12.0
csharp 1.cs 34ms 1.5ms 32.5MB 18ms 6ms dotnet 9.0.101

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 521ms 13ms 123.3MB 463ms 80ms dotnet/aot 9.0.101
csharp 1.cs 549ms 12ms 154.4MB 487ms 123ms dotnet/aot 9.0.101
csharp 2.cs 657ms 22ms 142.9MB 603ms 97ms dotnet 9.0.101
csharp 1.cs 663ms 5.2ms 169.5MB 603ms 123ms dotnet 9.0.101
csharp 1.cs 1246ms 80ms 142.6MB 1450ms 163ms mono 6.12.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
csharp 2.cs 129ms 11ms 62.5MB 93ms 33ms dotnet/aot 9.0.101
csharp 1.cs 147ms 8.4ms 80.9MB 113ms 43ms dotnet/aot 9.0.101
csharp 1.cs 247ms 3.2ms 71.3MB 207ms 43ms mono 6.12.0
csharp 1.cs 261ms 6.2ms 98.0MB 220ms 53ms dotnet 9.0.101
csharp 2.cs 268ms 26ms 80.7MB 217ms 40ms dotnet 9.0.101
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
csharp 1.cs 288ms 4.4ms 55.1MB 270ms 3ms dotnet/aot 9.0.101
csharp 1.cs 312ms 3.5ms 74.6MB 283ms 17ms dotnet 9.0.101
csharp 2.cs 376ms 1.5ms 39.9MB 357ms 7ms dotnet 9.0.101
csharp 2.cs 401ms 4.0ms 19.8MB 383ms 0ms dotnet/aot 9.0.101
csharp 1.cs 509ms 6.2ms 84.0MB 483ms 10ms mono 6.12.0
csharp 2.cs 1771ms 12ms 31.3MB 1753ms 7ms mono 6.12.0
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
csharp 1.cs 63ms 1.1ms 25.9MB 43ms 3ms dotnet/aot 9.0.101
csharp 1.cs 97ms 0.8ms 45.3MB 70ms 13ms dotnet 9.0.101
csharp 2.cs 103ms 1.4ms 17.9MB 87ms 3ms dotnet/aot 9.0.101
csharp 2.cs 120ms 3.1ms 35.9MB 107ms 3ms dotnet 9.0.101
csharp 1.cs 139ms 3.8ms 39.9MB 117ms 7ms mono 6.12.0
csharp 2.cs 462ms 9.6ms 27.1MB 450ms 0ms mono 6.12.0
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
acton 1-m.act 2853ms 97ms 8.6MB 2510ms 1970ms actonc 0.24.1
csharp 1.cs 3047ms 34ms 19.8MB 2953ms 97ms dotnet/aot 9.0.101
csharp 1.cs 3390ms 117ms 44.0MB 3390ms 110ms dotnet 9.0.101

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 716ms 8.6ms 19.6MB 667ms 33ms dotnet/aot 9.0.101
acton 1-m.act 811ms 6.4ms 5.8MB 710ms 577ms actonc 0.24.1
csharp 1.cs 940ms 21ms 43.5MB 1023ms 43ms dotnet 9.0.101