Acton VS Python 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
python 1.py 1197ms 3.3ms 96.2MB 1130ms 53ms pypy 3.10.16
acton 1.act timeout 0.0ms 67.1MB 5977ms 80ms actonc 0.24.1
python 1.py timeout 0.0ms 40.8MB 4967ms 17ms cpython 3.13.2
python 1.py timeout 0.0ms 40.5MB 4740ms 250ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 97ms 2.2ms 68.7MB 67ms 17ms pypy 3.10.16
python 1.py 487ms 1.2ms 11.9MB 460ms 13ms pyston 3.8.12
python 1.py 726ms 15ms 12.6MB 713ms 0ms cpython 3.13.2
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
python 1.py 252ms 2.8ms 83.3MB 213ms 27ms pypy 3.10.16
acton 1.act 265ms 20ms 7.1MB 230ms 70ms actonc 0.24.1
python 1.py 360ms 4.5ms 12.5MB 343ms 0ms cpython 3.13.2
python 1.py 2006ms 3.3ms 9.6MB 1990ms 0ms pyston 3.8.12

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
python 1.py 105ms 0.1ms 63.3MB 73ms 17ms pypy 3.10.16
python 1.py 125ms 28ms 12.3MB 100ms 0ms cpython 3.13.2
python 1.py 349ms 1.6ms 8.8MB 337ms 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.6ms 0.3ms 3.9MB 0ms 0ms actonc 0.24.1
python 1.py 12ms 0.8ms 7.6MB 0ms 0ms pyston 3.8.12
python 1.py 14ms 1.2ms 8.6MB 10ms 0ms cpython 3.13.2
python 1.py 30ms 1.2ms 51.4MB 10ms 10ms pypy 3.10.16

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2242ms 13ms 202.7MB 2123ms 100ms pypy 3.10.16
acton 1.act 3317ms 13ms 102.0MB 3620ms 57ms actonc 0.24.1
python 1.py timeout 0.0ms 93.6MB 4953ms 30ms cpython 3.13.2
python 1.py timeout 0.0ms 130.4MB 4930ms 53ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 384ms 3.7ms 105.2MB 320ms 47ms pypy 3.10.16
acton 1.act 715ms 22ms 30.5MB 753ms 33ms actonc 0.24.1
python 1.py 3229ms 20ms 37.2MB 3203ms 13ms cpython 3.13.2
python 1.py timeout 0.0ms 48.4MB 4963ms 23ms pyston 3.8.12

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2644ms 5.0ms 369.5MB 2577ms 57ms pypy 3.10.16
python 2.py 3165ms 30ms 633.0MB 2990ms 157ms pyston 3.8.12
acton 1.act timeout 0.0ms 561.0MB 6737ms 120ms actonc 0.24.1
python 1.py timeout 0.0ms 321.1MB 4960ms 30ms cpython 3.13.2
python 2.py timeout 0.0ms 633.6MB 4830ms 153ms cpython 3.13.2
python 2.py timeout 0.0ms 959.7MB 4717ms 270ms pypy 3.10.16
python 1.py timeout 0.0ms 320.4MB 4933ms 50ms pyston 3.8.12

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 554ms 4.7ms 135.2MB 517ms 23ms pypy 3.10.16
python 2.py 754ms 4.9ms 164.2MB 710ms 27ms pyston 3.8.12
python 1.py 1144ms 17ms 86.0MB 1117ms 10ms pyston 3.8.12
python 2.py 1460ms 5.5ms 164.8MB 1417ms 30ms cpython 3.13.2
python 2.py 1589ms 53ms 290.2MB 1500ms 77ms pypy 3.10.16
acton 1.act 2404ms 16ms 192.3MB 2937ms 40ms actonc 0.24.1
python 1.py 2736ms 37ms 86.8MB 2710ms 10ms cpython 3.13.2

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 1912ms 9.2ms 8.9MB 1870ms 27ms pyston 3.8.12
python 4.py 1956ms 14ms 9.3MB 1890ms 47ms cpython 3.13.2
python 4.py 2197ms 12ms 89.4MB 2153ms 30ms pypy 3.10.16
acton 1-m.act 3057ms 164ms 6.7MB 2860ms 2093ms actonc 0.24.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 453ms 3.4ms 8.6MB 443ms 0ms pyston 3.8.12
python 4.py 463ms 0.7ms 9.1MB 450ms 0ms cpython 3.13.2
python 4.py 551ms 4.4ms 83.8MB 517ms 20ms pypy 3.10.16
acton 1-m.act 870ms 31ms 5.7MB 770ms 633ms actonc 0.24.1