Acton VS Python benchmarks

Current benchmark data was generated on Mon May 19 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 1208ms 7.9ms 96.1MB 1143ms 53ms pypy 3.10.16
acton 1.act timeout 0.0ms 67.0MB 5913ms 87ms actonc 0.25.0
python 1.py timeout 0.0ms 40.9MB 4963ms 20ms cpython 3.13.3
python 1.py timeout 0.0ms 40.5MB 4757ms 230ms 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.8MB 70ms 13ms pypy 3.10.16
python 1.py 476ms 3.5ms 11.9MB 453ms 10ms pyston 3.8.12
python 1.py 736ms 14ms 12.8MB 723ms 0ms cpython 3.13.3
acton 1.act 866ms 49ms 12.1MB 997ms 63ms actonc 0.25.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 226ms 10.0ms 8.0MB 207ms 30ms actonc 0.25.0
python 1.py 252ms 4.6ms 83.0MB 217ms 20ms pypy 3.10.16
python 1.py 361ms 2.9ms 12.7MB 347ms 0ms cpython 3.13.3
python 1.py 2016ms 25ms 9.6MB 2003ms 0ms pyston 3.8.12

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 82ms 15ms 5.8MB 63ms 13ms actonc 0.25.0
python 1.py 101ms 1.7ms 63.6MB 73ms 13ms pypy 3.10.16
python 1.py 108ms 1.3ms 11.5MB 97ms 0ms cpython 3.13.3
python 1.py 348ms 1.4ms 8.8MB 340ms 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.2ms 3.9MB 0ms 0ms actonc 0.25.0
python 1.py 11ms 0.3ms 7.6MB 0ms 0ms pyston 3.8.12
python 1.py 13ms 0.5ms 8.8MB 10ms 0ms cpython 3.13.3
python 1.py 29ms 1.2ms 51.7MB 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 2218ms 7.5ms 202.7MB 2107ms 100ms pypy 3.10.16
acton 1.act 3359ms 11ms 84.5MB 3770ms 57ms actonc 0.25.0
python 1.py timeout 0.0ms 94.0MB 4950ms 33ms cpython 3.13.3
python 1.py timeout 0.0ms 130.3MB 4933ms 50ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 379ms 3.2ms 104.7MB 323ms 47ms pypy 3.10.16
acton 1.act 759ms 44ms 23.8MB 833ms 33ms actonc 0.25.0
python 1.py 3095ms 22ms 37.3MB 3067ms 10ms cpython 3.13.3
python 1.py timeout 0.0ms 48.9MB 4950ms 33ms pyston 3.8.12

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2512ms 35ms 369.6MB 2440ms 57ms pypy 3.10.16
python 2.py 2965ms 38ms 632.9MB 2797ms 153ms pyston 3.8.12
python 1.py 4719ms 55ms 320.4MB 4660ms 47ms pyston 3.8.12
acton 1.act timeout 0.0ms 560.9MB 6627ms 93ms actonc 0.25.0
python 1.py timeout 0.0ms 321.4MB 4957ms 30ms cpython 3.13.3
python 2.py timeout 0.0ms 633.8MB 4843ms 143ms cpython 3.13.3
python 2.py timeout 0.0ms 959.9MB 4710ms 280ms pypy 3.10.16

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 526ms 2.9ms 135.2MB 490ms 23ms pypy 3.10.16
python 2.py 713ms 3.4ms 164.2MB 670ms 30ms pyston 3.8.12
python 1.py 1069ms 35ms 86.0MB 1047ms 10ms pyston 3.8.12
python 2.py 1424ms 21ms 165.0MB 1380ms 30ms cpython 3.13.3
python 2.py 1518ms 19ms 290.3MB 1427ms 77ms pypy 3.10.16
acton 1.act 2461ms 15ms 192.4MB 2957ms 57ms actonc 0.25.0
python 1.py 2702ms 14ms 86.9MB 2680ms 10ms cpython 3.13.3

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 1916ms 21ms 8.9MB 1867ms 33ms pyston 3.8.12
python 4.py 1987ms 11ms 9.4MB 1930ms 43ms cpython 3.13.3
python 4.py 2204ms 6.9ms 89.5MB 2160ms 30ms pypy 3.10.16
acton 1-m.act 3454ms 71ms 7.0MB 3500ms 2400ms actonc 0.25.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 454ms 4.5ms 8.6MB 443ms 0ms pyston 3.8.12
python 4.py 480ms 17ms 9.3MB 470ms 0ms cpython 3.13.3
python 4.py 559ms 7.0ms 83.9MB 527ms 20ms pypy 3.10.16
acton 1-m.act 970ms 26ms 6.0MB 937ms 717ms actonc 0.25.0