Acton VS Python benchmarks

Current benchmark data was generated on Wed Jan 22 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
python 1.py 1189ms 1.9ms 95.8MB 1113ms 57ms pypy 3.10.14
acton 1.act timeout 0.0ms 69.0MB 5947ms 107ms actonc 0.24.1
python 1.py timeout 0.0ms 40.9MB 4970ms 17ms cpython 3.13.1
python 1.py timeout 0.0ms 40.6MB 4760ms 227ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 96ms 2.4ms 68.1MB 67ms 20ms pypy 3.10.14
python 1.py 486ms 19ms 11.9MB 457ms 13ms pyston 3.8.12
python 1.py 705ms 9.2ms 12.6MB 693ms 0ms cpython 3.13.1
acton 1.act 840ms 40ms 12.0MB 967ms 77ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 246ms 1.1ms 82.8MB 213ms 13ms pypy 3.10.14
acton 1.act 269ms 4.3ms 8.1MB 247ms 63ms actonc 0.24.1
python 1.py 362ms 2.1ms 12.7MB 347ms 3ms cpython 3.13.1
python 1.py 1998ms 4.4ms 9.6MB 1980ms 3ms pyston 3.8.12

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 97ms 0.7ms 62.8MB 63ms 20ms pypy 3.10.14
acton 1.act 100ms 2.2ms 7.2MB 80ms 37ms actonc 0.24.1
python 1.py 109ms 3.8ms 12.4MB 100ms 0ms cpython 3.13.1
python 1.py 347ms 2.2ms 8.8MB 333ms 0ms pyston 3.8.12

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 3.8ms 0.3ms 8.3MB 0ms 0ms actonc 0.24.1
python 1.py 12ms 1.1ms 7.6MB 0ms 0ms pyston 3.8.12
python 1.py 14ms 1.2ms 8.5MB 10ms 0ms cpython 3.13.1
python 1.py 28ms 0.6ms 51.0MB 10ms 8ms pypy 3.10.14

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2276ms 12ms 209.9MB 2153ms 103ms pypy 3.10.14
acton 1.act 3246ms 7.1ms 101.8MB 3543ms 43ms actonc 0.24.1
python 1.py timeout 0.0ms 93.9MB 4953ms 33ms cpython 3.13.1
python 1.py timeout 0.0ms 130.4MB 4923ms 57ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 389ms 1.4ms 103.6MB 330ms 43ms pypy 3.10.14
acton 1.act 691ms 2.3ms 32.5MB 723ms 30ms actonc 0.24.1
python 1.py 3030ms 33ms 37.1MB 3000ms 17ms cpython 3.13.1
python 1.py timeout 0.0ms 48.9MB 4937ms 47ms pyston 3.8.12

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2562ms 34ms 369.0MB 2500ms 47ms pypy 3.10.14
python 2.py 3081ms 166ms 632.9MB 2897ms 163ms pyston 3.8.12
python 1.py 4831ms 35ms 320.4MB 4770ms 47ms pyston 3.8.12
acton 1.act timeout 0.0ms 561.0MB 6750ms 100ms actonc 0.24.1
python 1.py timeout 0.0ms 321.1MB 4960ms 27ms cpython 3.13.1
python 2.py timeout 0.0ms 633.7MB 4817ms 167ms cpython 3.13.1
python 2.py timeout 0.0ms 959.2MB 4713ms 273ms pypy 3.10.14

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 541ms 4.6ms 134.6MB 507ms 17ms pypy 3.10.14
python 2.py 721ms 1.2ms 164.2MB 683ms 17ms pyston 3.8.12
python 1.py 1162ms 45ms 86.0MB 1130ms 13ms pyston 3.8.12
python 2.py 1435ms 3.2ms 164.8MB 1390ms 27ms cpython 3.13.1
python 2.py 1571ms 24ms 289.8MB 1473ms 80ms pypy 3.10.14
acton 1.act 2338ms 14ms 192.4MB 2857ms 37ms actonc 0.24.1
python 1.py 2724ms 28ms 86.8MB 2693ms 13ms cpython 3.13.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 1907ms 9.4ms 8.9MB 1860ms 30ms pyston 3.8.12
python 4.py 1988ms 11ms 9.4MB 1930ms 40ms cpython 3.13.1
python 4.py 2128ms 6.9ms 89.0MB 2090ms 23ms pypy 3.10.14
acton 1-m.act 3163ms 97ms 6.7MB 2887ms 2157ms actonc 0.24.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 451ms 1.8ms 8.6MB 440ms 0ms pyston 3.8.12
python 4.py 470ms 4.4ms 9.3MB 457ms 0ms cpython 3.13.1
python 4.py 542ms 7.0ms 83.4MB 507ms 17ms pypy 3.10.14
acton 1-m.act 868ms 4.4ms 7.5MB 770ms 610ms actonc 0.24.1