Dart Versus Python benchmarks

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

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 4.dart 836ms 6.1ms 167.0MB 1230ms 163ms dart 2.14.4
python 1.py 1723ms 53ms 129.1MB 2410ms 200ms pypy 3.7.12

Input: 14

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 4.dart 65ms 7.5ms 52.3MB 53ms 20ms dart 2.14.4
python 1.py 426ms 0.9ms 93.2MB 467ms 70ms pypy 3.7.12
python 1.py 653ms 115ms 18.9MB 960ms 30ms cpython 3.10.0
python 1.py 2476ms 19ms 48.4MB 2957ms 230ms pyjion 3.10.0

coro-prime-sieve

Input: 1000

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

edigits

Input: 100000

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

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 2.dart 4470ms 2.7ms 12.0MB 4450ms 0ms dart 2.14.4

Input: 10

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 2.dart 362ms 6.7ms 14.0MB 343ms 0ms dart 2.14.4

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 503ms 9.6ms 22.2MB 460ms 10ms dart 2.14.4
python 5.py 4644ms 37ms 12.8MB 6647ms 1240ms cpython 3.10.0
python 5.py 4764ms 15ms 85.0MB 6240ms 1173ms pypy 3.7.12

Input: 250000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 70ms 12ms 14.3MB 47ms 0ms dart 2.14.4
python 5.py 563ms 17ms 13.4MB 740ms 143ms cpython 3.10.0
python 5.py 871ms 25ms 85.3MB 813ms 350ms pypy 3.7.12
python 5.py 2429ms 9.1ms 44.9MB 2843ms 410ms pyjion 3.10.0

helloworld

Input: QwQ

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

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
python 1.py 2669ms 11ms 28.3MB 2060ms 977ms cpython 3.10.0
dart 1.dart 4020ms 6.0ms 106.4MB 1357ms 697ms dart 2.14.4

Input: 500

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
python 1.py 501ms 29ms 22.9MB 353ms 160ms cpython 3.10.0
python 1.py 1515ms 191ms 109.7MB 923ms 203ms pypy 3.7.12
dart 1.dart 1684ms 306ms 57.9MB 190ms 127ms dart 2.14.4

json-serde

Input: sample 5000

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

Input: canada 15

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

mandelbrot

Input: 8000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 2.dart 4357ms 541ms 53.0MB 7193ms 20ms dart 2.14.4

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 2.dart 77ms 7.5ms 16.6MB 113ms 0ms dart 2.14.4

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 3.dart 1033ms 26ms 13.9MB 1017ms 0ms dart 2.14.4
python 2.py 2358ms 13ms 74.3MB 2330ms 17ms pypy 3.7.12

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 3.dart 114ms 1.1ms 13.9MB 100ms 0ms dart 2.14.4
python 2.py 299ms 2.4ms 74.5MB 267ms 17ms pypy 3.7.12
python 1.py 559ms 1.5ms 74.0MB 530ms 13ms pypy 3.7.12

Input: 100000

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

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
python 4.py 2530ms 11ms 128.8MB 2467ms 43ms pypy 3.7.12
python 4.py 2605ms 1.2ms 9.0MB 2573ms 17ms cpython 3.10.0
python 4.py 2637ms 2.7ms 19.8MB 2613ms 10ms pyjion 3.10.0
dart 2.dart 2638ms 592ms 20.1MB 1920ms 53ms dart 2.14.4

Input: 4000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
python 4.py 623ms 0.6ms 8.7MB 607ms 0ms cpython 3.10.0
python 4.py 652ms 2.3ms 80.6MB 620ms 20ms pypy 3.7.12
python 4.py 686ms 0.8ms 20.1MB 660ms 13ms pyjion 3.10.0
dart 2.dart 1473ms 7.9ms 22.2MB 440ms 17ms dart 2.14.4

Input: 1000

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

spectral-norm

Input: 4000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 1300ms 1.6ms 13.8MB 1287ms 0ms dart 2.14.4

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 92ms 6.1ms 12.3MB 77ms 0ms dart 2.14.4
python 8.py 1661ms 15ms 99.5MB 2540ms 167ms pypy 3.7.12