Acton VS Python benchmarks

Current benchmark data was generated on Tue Dec 31 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
python 1.py 1086ms 7.1ms 95.8MB 1023ms 47ms pypy 3.10.14
acton 1.act timeout 0.0ms 68.8MB 5927ms 67ms actonc 0.24.1
python 1.py timeout 0.0ms 40.8MB 4967ms 17ms cpython 3.13.1
python 1.py timeout 0.0ms 40.5MB 4750ms 237ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 93ms 4.4ms 68.1MB 57ms 20ms pypy 3.10.14
python 1.py 448ms 2.5ms 11.9MB 423ms 7ms pyston 3.8.12
python 1.py 675ms 16ms 12.6MB 660ms 0ms cpython 3.13.1
acton 1.act 794ms 30ms 13.9MB 923ms 60ms actonc 0.24.1

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 236ms 4.6ms 82.9MB 197ms 27ms pypy 3.10.14
acton 1.act 258ms 21ms 7.0MB 237ms 60ms actonc 0.24.1
python 1.py 341ms 2.5ms 12.7MB 330ms 0ms cpython 3.13.1
python 1.py 1892ms 11ms 9.6MB 1877ms 0ms pyston 3.8.12

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 90ms 2.2ms 7.2MB 73ms 33ms actonc 0.24.1
python 1.py 97ms 4.0ms 62.8MB 70ms 10ms pypy 3.10.14
python 1.py 107ms 1.8ms 12.1MB 90ms 3ms cpython 3.13.1
python 1.py 334ms 3.4ms 8.8MB 317ms 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 4.1MB 0ms 0ms actonc 0.24.1
python 1.py 11ms 0.8ms 7.6MB 0ms 0ms pyston 3.8.12
python 1.py 13ms 1.3ms 8.5MB 10ms 0ms cpython 3.13.1
python 1.py 26ms 0.9ms 51.0MB 8ms 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 2111ms 2.8ms 210.1MB 2007ms 83ms pypy 3.10.14
acton 1.act 3058ms 12ms 101.9MB 3330ms 47ms actonc 0.24.1
python 1.py timeout 0.0ms 93.9MB 4963ms 23ms cpython 3.13.1
python 1.py timeout 0.0ms 130.4MB 4933ms 53ms pyston 3.8.12

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 360ms 5.1ms 103.6MB 297ms 50ms pypy 3.10.14
acton 1.act 676ms 47ms 32.3MB 707ms 20ms actonc 0.24.1
python 1.py 2752ms 61ms 37.2MB 2727ms 7ms cpython 3.13.1
python 1.py 4838ms 94ms 48.9MB 4770ms 50ms pyston 3.8.12

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 2328ms 43ms 369.1MB 2263ms 47ms pypy 3.10.14
python 2.py 2768ms 15ms 632.9MB 2590ms 163ms pyston 3.8.12
python 1.py 4623ms 31ms 320.4MB 4567ms 40ms pyston 3.8.12
acton 1.act timeout 0.0ms 561.0MB 6733ms 113ms actonc 0.24.1
python 1.py timeout 0.0ms 321.1MB 4953ms 27ms cpython 3.13.1
python 2.py timeout 0.0ms 633.5MB 4813ms 170ms cpython 3.13.1
python 2.py timeout 0.0ms 959.3MB 4743ms 243ms pypy 3.10.14

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 1.py 497ms 14ms 134.7MB 467ms 17ms pypy 3.10.14
python 2.py 679ms 22ms 164.2MB 630ms 30ms pyston 3.8.12
python 1.py 1022ms 10ms 86.0MB 1000ms 3ms pyston 3.8.12
python 2.py 1327ms 14ms 164.8MB 1283ms 27ms cpython 3.13.1
python 2.py 1463ms 8.1ms 289.7MB 1363ms 80ms pypy 3.10.14
acton 1.act 2260ms 73ms 229.8MB 2830ms 30ms actonc 0.24.1
python 1.py 2501ms 11ms 86.9MB 2473ms 10ms cpython 3.13.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 1803ms 1.7ms 8.9MB 1750ms 37ms pyston 3.8.12
python 4.py 1882ms 15ms 9.4MB 1823ms 40ms cpython 3.13.1
python 4.py 2018ms 13ms 89.1MB 1983ms 20ms pypy 3.10.14
acton 1-m.act 2853ms 97ms 8.6MB 2510ms 1970ms actonc 0.24.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
python 4.py 427ms 4.9ms 8.8MB 413ms 0ms pyston 3.8.12
python 4.py 450ms 5.6ms 9.1MB 437ms 0ms cpython 3.13.1
python 4.py 515ms 2.6ms 83.8MB 480ms 17ms pypy 3.10.14
acton 1-m.act 811ms 6.4ms 5.8MB 710ms 577ms actonc 0.24.1