Dart Versus C 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
c 2.c 277ms 0.2ms 26.7MB 440ms 20ms gcc 11.2.0
c 2.c 353ms 28ms 27.5MB 607ms 30ms clang 13.0.1
dart 4.dart 836ms 6.1ms 167.0MB 1230ms 163ms dart 2.14.4

Input: 14

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
c 2.c 17ms 0.9ms 3.9MB 17ms 0ms gcc 11.2.0
c 2.c 50ms 29ms 4.7MB 30ms 0ms clang 13.0.1
dart 4.dart 65ms 7.5ms 52.3MB 53ms 20ms dart 2.14.4

coro-prime-sieve

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 1380ms 8.5ms 211.3MB 1197ms 207ms dart 2.14.4

edigits

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
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

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

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
c 1.c 1.9ms 0.3ms 0.2MB 0ms 0ms zigcc 0.9.0-dev
c 1.c 2.1ms 0.4ms 2.5MB 0ms 0ms gcc 11.2.0
c 1.c 2.2ms 0.5ms 2.5MB 0ms 0ms clang 13.0.1
dart 1.dart 8.4ms 2.3ms 14.0MB 0ms 0ms dart 2.14.4

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
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
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
dart 1.dart 293ms 8.7ms 64.5MB 270ms 13ms dart 2.14.4

Input: canada 15

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
dart 1.dart 2680ms 570ms 242.8MB 2353ms 157ms dart 2.14.4

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
c 8.c 322ms 0.5ms 1.1MB 310ms 0ms gcc 11.2.0
c 8.c 323ms 1.2ms 1.3MB 310ms 0ms clang 13.0.1
c 8.c 368ms 0.2ms 0.3MB 357ms 0ms zigcc 0.9.0-dev
c 5.c 378ms 2.9ms 1.2MB 367ms 0ms gcc 11.2.0
c 2.c 389ms 2.3ms 1.1MB 377ms 0ms gcc 11.2.0
c 5.c 425ms 0.9ms 0.2MB 417ms 0ms zigcc 0.9.0-dev
c 5.c 429ms 1.0ms 1.3MB 417ms 0ms clang 13.0.1
c 2.c 432ms 8.9ms 0.3MB 423ms 0ms zigcc 0.9.0-dev
c 2.c 458ms 6.2ms 1.3MB 443ms 0ms clang 13.0.1
dart 3.dart 1033ms 26ms 13.9MB 1017ms 0ms dart 2.14.4

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
c 8.c 34ms 0.3ms 1.2MB 23ms 0ms gcc 11.2.0
c 8.c 35ms 1.9ms 1.3MB 27ms 0ms clang 13.0.1
c 8.c 38ms 0.3ms 0.3MB 30ms 0ms zigcc 0.9.0-dev
c 5.c 39ms 0.7ms 1.2MB 30ms 0ms gcc 11.2.0
c 2.c 40ms 0.9ms 1.3MB 30ms 0ms gcc 11.2.0
c 5.c 44ms 0.2ms 0.2MB 33ms 0ms zigcc 0.9.0-dev
c 5.c 46ms 0.8ms 1.3MB 40ms 0ms clang 13.0.1
c 2.c 47ms 0.1ms 0.3MB 40ms 0ms zigcc 0.9.0-dev
c 2.c 47ms 1.8ms 1.3MB 40ms 0ms clang 13.0.1
dart 3.dart 114ms 1.1ms 13.9MB 100ms 0ms dart 2.14.4

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
c 8.c 7.8ms 0.3ms 1.2MB 0ms 0ms gcc 11.2.0
c 8.c 8.9ms 0.2ms 0.3MB 0ms 0ms zigcc 0.9.0-dev
c 8.c 9.3ms 1.1ms 1.3MB 0ms 0ms clang 13.0.1
c 2.c 9.5ms 0.3ms 1.2MB 0ms 0ms gcc 11.2.0
c 5.c 9.5ms 0.5ms 1.2MB 0ms 0ms gcc 11.2.0
c 5.c 10ms 0.7ms 0.2MB 0ms 0ms zigcc 0.9.0-dev
c 2.c 11ms 0.7ms 0.3MB 0ms 0ms zigcc 0.9.0-dev
c 5.c 13ms 2.9ms 1.3MB 0ms 0ms clang 13.0.1
c 2.c 13ms 2.7ms 1.3MB 0ms 0ms clang 13.0.1
dart 3.dart 32ms 8.2ms 14.0MB 23ms 0ms dart 2.14.4

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
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
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

spectral-norm

Input: 4000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
c 4.c 331ms 7.1ms 1.2MB 623ms 0ms gcc 11.2.0
c 6.c 357ms 0.1ms 1.2MB 690ms 0ms gcc 11.2.0
c 6.c 363ms 1.5ms 3.3MB 690ms 0ms clang 13.0.1
c 5.c 406ms 2.4ms 1.3MB 783ms 0ms gcc 11.2.0
c 4.c 425ms 10ms 3.2MB 810ms 0ms clang 13.0.1
c 5.c 477ms 0.6ms 3.3MB 920ms 3ms clang 13.0.1
c 3.c 478ms 6.7ms 3.3MB 920ms 0ms clang 13.0.1
c 3.c 501ms 3.0ms 1.2MB 977ms 0ms gcc 11.2.0
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
c 4.c 26ms 0.7ms 1.2MB 40ms 0ms gcc 11.2.0
c 6.c 27ms 0.6ms 3.3MB 40ms 0ms clang 13.0.1
c 6.c 28ms 2.7ms 1.2MB 40ms 0ms gcc 11.2.0
c 5.c 33ms 1.8ms 1.3MB 50ms 0ms gcc 11.2.0
c 4.c 34ms 2.5ms 3.1MB 50ms 0ms clang 13.0.1
c 5.c 35ms 1.3ms 3.1MB 60ms 0ms clang 13.0.1
c 3.c 36ms 1.2ms 3.3MB 60ms 0ms clang 13.0.1
c 3.c 38ms 1.2ms 1.1MB 60ms 0ms gcc 11.2.0
dart 1.dart 92ms 6.1ms 12.3MB 77ms 0ms dart 2.14.4