All Python benchmarks

Current benchmark data was generated on Sat Nov 27 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 1723ms 53ms 129.1MB 2410ms 200ms pypy 3.7.12

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 426ms 0.9ms 93.2MB 467ms 70ms pypy 3.7.12
1.py 653ms 115ms 18.9MB 960ms 30ms cpython 3.10.0
1.py 2476ms 19ms 48.4MB 2957ms 230ms pyjion 3.10.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 1348ms 19ms 234.2MB 1240ms 90ms pypy 3.7.12

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 306ms 64ms 99.5MB 267ms 23ms pypy 3.7.12
1.py 902ms 7.5ms 17.5MB 873ms 7ms cpython 3.10.0
1.py 3039ms 5.6ms 49.2MB 2797ms 230ms pyjion 3.10.0

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 740ms 7.3ms 84.2MB 703ms 17ms pypy 3.7.12
1.py 2343ms 5.0ms 9.7MB 2323ms 3ms cpython 3.10.0
1.py 2481ms 4.5ms 21.7MB 2453ms 13ms pyjion 3.10.0

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 203ms 1.9ms 76.9MB 170ms 17ms pypy 3.7.12
1.py 420ms 3.1ms 8.9MB 403ms 0ms cpython 3.10.0
1.py 554ms 4.2ms 21.8MB 530ms 10ms pyjion 3.10.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.py 4644ms 37ms 12.8MB 6647ms 1240ms cpython 3.10.0
5.py 4764ms 15ms 85.0MB 6240ms 1173ms pypy 3.7.12

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.py 563ms 17ms 13.4MB 740ms 143ms cpython 3.10.0
5.py 871ms 25ms 85.3MB 813ms 350ms pypy 3.7.12
5.py 2429ms 9.1ms 44.9MB 2843ms 410ms pyjion 3.10.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 16ms 1.8ms 7.7MB 10ms 0ms cpython 3.10.0
1.py 32ms 1.1ms 53.6MB 8ms 10ms pypy 3.7.12
1.py 55ms 1.6ms 17.7MB 38ms 2ms pyjion 3.10.0

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 2669ms 11ms 28.3MB 2060ms 977ms cpython 3.10.0

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 501ms 29ms 22.9MB 353ms 160ms cpython 3.10.0
1.py 1515ms 191ms 109.7MB 923ms 203ms pypy 3.7.12

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 278ms 15ms 39.2MB 237ms 20ms cpython 3.10.0
1.py 403ms 2.5ms 103.5MB 360ms 27ms pypy 3.7.12
1.py 1322ms 5.2ms 56.5MB 1167ms 140ms pyjion 3.10.0

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 2405ms 15ms 220.9MB 2280ms 107ms cpython 3.10.0
1.py 2600ms 5.4ms 242.0MB 2493ms 93ms pypy 3.7.12
1.py 3443ms 8.9ms 235.6MB 3183ms 247ms pyjion 3.10.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.py 2358ms 13ms 74.3MB 2330ms 17ms pypy 3.7.12

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.py 299ms 2.4ms 74.5MB 267ms 17ms pypy 3.7.12
1.py 559ms 1.5ms 74.0MB 530ms 13ms pypy 3.7.12

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.py 113ms 3.0ms 74.0MB 87ms 17ms pypy 3.7.12
1.py 153ms 0.9ms 74.0MB 130ms 10ms pypy 3.7.12
1.py 1061ms 7.4ms 8.5MB 1047ms 0ms cpython 3.10.0
2.py 1371ms 2.1ms 27.0MB 1333ms 17ms pyjion 3.10.0
2.py 1464ms 14ms 8.4MB 1450ms 0ms cpython 3.10.0
1.py 1642ms 9.0ms 27.9MB 1613ms 10ms pyjion 3.10.0

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.py 2530ms 11ms 128.8MB 2467ms 43ms pypy 3.7.12
4.py 2605ms 1.2ms 9.0MB 2573ms 17ms cpython 3.10.0
4.py 2637ms 2.7ms 19.8MB 2613ms 10ms pyjion 3.10.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.py 623ms 0.6ms 8.7MB 607ms 0ms cpython 3.10.0
4.py 652ms 2.3ms 80.6MB 620ms 20ms pypy 3.7.12
4.py 686ms 0.8ms 20.1MB 660ms 13ms pyjion 3.10.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.py 55ms 1.5ms 8.2MB 47ms 0ms cpython 3.10.0
4.py 99ms 1.3ms 74.2MB 77ms 13ms pypy 3.7.12
4.py 115ms 1.4ms 20.1MB 97ms 3ms pyjion 3.10.0

nsieve

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.py 1124ms 2.6ms 210.0MB 1047ms 57ms pypy 3.7.12
1.py 4792ms 15ms 95.5MB 4737ms 40ms pyjion 3.10.0

spectral-norm

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.py 1661ms 15ms 99.5MB 2540ms 167ms pypy 3.7.12