Acton VS D 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
d 1.d 1779ms 14ms 312.5MB 1757ms 30ms ldc2 1.40.1
d 1.d 3014ms 3.4ms 315.0MB 3180ms 50ms dmd 2.111.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
d 1.d 164ms 0.4ms 207.9MB 130ms 20ms ldc2 1.40.1
d 1.d 263ms 2.3ms 210.0MB 230ms 20ms dmd 2.111.0
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
d 1.d 2553ms 5.1ms 8.1MB 2537ms 0ms ldc2 1.40.1
d 1.d 2867ms 3.5ms 10.5MB 2853ms 3ms dmd 2.111.0

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
d 1.d 442ms 1.8ms 8.1MB 430ms 0ms ldc2 1.40.1
d 1.d 519ms 3.3ms 10.4MB 510ms 0ms dmd 2.111.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 1.6ms 0.1ms 3.0MB 0ms 0ms ldc2 1.40.1
d 1.d 2.0ms 0.2ms 5.1MB 0ms 0ms dmd 2.111.0
acton 1.act 3.8ms 0.3ms 3.9MB 0ms 0ms actonc 0.25.0

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 967ms 3.5ms 312.8MB 940ms 33ms ldc2 1.40.1
d 1.d 1868ms 4.0ms 314.4MB 1990ms 47ms dmd 2.111.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
d 1.d 204ms 1.2ms 312.5MB 170ms 27ms ldc2 1.40.1
d 1.d 363ms 1.3ms 314.8MB 330ms 30ms dmd 2.111.0
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
d 1.d 310ms 2.0ms 43.5MB 293ms 3ms ldc2 1.40.1
d 1.d 360ms 4.2ms 79.3MB 343ms 7ms dmd 2.111.0
d 2.d 843ms 1.6ms 47.5MB 827ms 3ms ldc2 1.40.1
d 2.d 1170ms 1.5ms 51.5MB 1150ms 7ms dmd 2.111.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
d 1.d 63ms 3.5ms 15.7MB 53ms 0ms ldc2 1.40.1
d 1.d 75ms 2.1ms 25.5MB 63ms 0ms dmd 2.111.0
d 2.d 208ms 1.4ms 17.7MB 200ms 0ms ldc2 1.40.1
d 2.d 292ms 0.9ms 19.9MB 280ms 0ms dmd 2.111.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
d 1.d 2424ms 9.2ms 8.2MB 2347ms 457ms ldc2 1.40.1
acton 1-m.act 3448ms 37ms 6.8MB 3523ms 2430ms actonc 0.25.0
d 1.d 4427ms 6.8ms 10.4MB 4383ms 480ms dmd 2.111.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 583ms 2.0ms 8.0MB 550ms 120ms ldc2 1.40.1
acton 1-m.act 960ms 34ms 6.1MB 940ms 687ms actonc 0.25.0
d 1.d 1050ms 5.7ms 10.4MB 1037ms 110ms dmd 2.111.0