Acton VS Rust benchmarks

Current benchmark data was generated on Mon Dec 30 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
rust 4.rs 1245ms 9.2ms 33.8MB 1227ms 3ms rustc 1.83.0
rust 5.rs 1324ms 7.0ms 33.8MB 1297ms 10ms rustc 1.83.0
rust 3.rs 1436ms 25ms 49.8MB 1403ms 17ms rustc 1.83.0
acton 1.act timeout 0.0ms 67.0MB 5963ms 77ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 4.rs 118ms 2.7ms 5.8MB 107ms 0ms rustc 1.83.0
rust 5.rs 126ms 0.6ms 5.8MB 120ms 0ms rustc 1.83.0
rust 3.rs 141ms 4.7ms 7.8MB 127ms 0ms rustc 1.83.0
acton 1.act 829ms 36ms 12.0MB 960ms 70ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 115ms 0.4ms 3.6MB 100ms 0ms rustc 1.83.0
acton 1.act 273ms 7.1ms 9.0MB 240ms 77ms actonc 0.24.1
rust 2.rs 412ms 4.1ms 3.6MB 403ms 0ms rustc 1.83.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 34ms 1.7ms 2.9MB 27ms 0ms rustc 1.83.0
rust 2.rs 74ms 0.1ms 3.0MB 63ms 0ms rustc 1.83.0
acton 1.act 96ms 11ms 5.3MB 77ms 33ms actonc 0.24.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 1.2ms 0.0ms 1.9MB 0ms 0ms rustc 1.85.0-nightly
rust 1.rs 1.3ms 0.1ms 1.8MB 0ms 0ms rustc 1.83.0
acton 1.act 3.9ms 0.2ms 8.3MB 0ms 0ms actonc 0.24.1

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 699ms 10ms 33.8MB 673ms 10ms rustc 1.83.0
acton 1.act 3310ms 185ms 101.9MB 3583ms 63ms actonc 0.24.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 148ms 0.5ms 9.8MB 140ms 0ms rustc 1.83.0
acton 1.act 699ms 28ms 30.4MB 727ms 37ms actonc 0.24.1

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 298ms 8.3ms 40.9MB 280ms 0ms rustc 1.83.0
rust 2.rs 321ms 2.9ms 6.6MB 303ms 0ms rustc 1.83.0
acton 1.act timeout 0.0ms 562.9MB 6753ms 110ms actonc 0.24.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 60ms 1.9ms 11.6MB 47ms 0ms rustc 1.83.0
rust 2.rs 81ms 1.2ms 2.9MB 70ms 0ms rustc 1.83.0
acton 1.act 2333ms 30ms 192.4MB 2833ms 50ms actonc 0.24.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 1567ms 4.0ms 2.7MB 1343ms 203ms rustc 1.83.0
rust 2.rs 1706ms 7.7ms 2.8MB 1617ms 73ms rustc 1.83.0
acton 1-m.act 3082ms 51ms 6.6MB 2720ms 2220ms actonc 0.24.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 324ms 4.3ms 2.4MB 290ms 20ms rustc 1.83.0
rust 2.rs 381ms 3.5ms 2.5MB 367ms 0ms rustc 1.83.0
acton 1-m.act 868ms 22ms 5.6MB 723ms 653ms actonc 0.24.1