Acton VS D benchmarks

Current benchmark data was generated on Tue Mar 25 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 1796ms 1.6ms 312.6MB 1770ms 33ms ldc2 1.40.1
d 1.d 2825ms 142ms 314.8MB 3023ms 47ms dmd 2.110.0
acton 1.act timeout 0.0ms 67.1MB 5977ms 80ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 164ms 2.0ms 209.8MB 140ms 13ms ldc2 1.40.1
d 1.d 231ms 4.2ms 211.8MB 203ms 10ms dmd 2.110.0
acton 1.act 835ms 22ms 12.0MB 973ms 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 265ms 20ms 7.1MB 230ms 70ms actonc 0.24.1
d 1.d 2558ms 2.8ms 8.0MB 2547ms 0ms ldc2 1.40.1
d 1.d 2909ms 6.1ms 10.4MB 2893ms 3ms dmd 2.110.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 101ms 17ms 5.3MB 83ms 27ms actonc 0.24.1
d 1.d 442ms 0.2ms 8.1MB 430ms 0ms ldc2 1.40.1
d 1.d 527ms 0.5ms 10.2MB 520ms 0ms dmd 2.110.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.2ms 0.3ms 5.0MB 0ms 0ms dmd 2.110.0
acton 1.act 3.6ms 0.3ms 3.9MB 0ms 0ms actonc 0.24.1

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 988ms 12ms 312.6MB 960ms 33ms ldc2 1.40.1
d 1.d 1785ms 13ms 314.7MB 1923ms 40ms dmd 2.110.0
acton 1.act 3317ms 13ms 102.0MB 3620ms 57ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 198ms 1.8ms 312.7MB 163ms 23ms ldc2 1.40.1
d 1.d 350ms 9.4ms 314.7MB 320ms 27ms dmd 2.110.0
acton 1.act 715ms 22ms 30.5MB 753ms 33ms actonc 0.24.1

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 330ms 2.6ms 43.1MB 317ms 3ms ldc2 1.40.1
d 1.d 369ms 6.5ms 77.3MB 353ms 7ms dmd 2.110.0
d 2.d 843ms 1.5ms 46.9MB 823ms 0ms ldc2 1.40.1
d 2.d 1168ms 2.1ms 48.7MB 1150ms 10ms dmd 2.110.0
acton 1.act timeout 0.0ms 561.0MB 6737ms 120ms actonc 0.24.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 64ms 1.5ms 15.0MB 57ms 0ms ldc2 1.40.1
d 1.d 77ms 3.4ms 27.2MB 67ms 0ms dmd 2.110.0
d 2.d 209ms 2.5ms 17.1MB 200ms 0ms ldc2 1.40.1
d 2.d 294ms 1.0ms 18.9MB 280ms 0ms dmd 2.110.0
acton 1.act 2404ms 16ms 192.3MB 2937ms 40ms actonc 0.24.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 2428ms 10.0ms 8.1MB 2400ms 390ms ldc2 1.40.1
acton 1-m.act 3057ms 164ms 6.7MB 2860ms 2093ms actonc 0.24.1
d 1.d 4357ms 29ms 10.2MB 4283ms 490ms dmd 2.110.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 584ms 0.7ms 8.1MB 550ms 113ms ldc2 1.40.1
acton 1-m.act 870ms 31ms 5.7MB 770ms 633ms actonc 0.24.1
d 1.d 1028ms 5.0ms 10.2MB 1010ms 110ms dmd 2.110.0