Dart Versus Go 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
go 2.go 2288ms 38ms 70.9MB 4367ms 70ms go 1.17.3
go 1.go 3013ms 7.1ms 43.0MB 4423ms 47ms go 1.17.3
go 1.go 4494ms 15ms 39.3MB 4477ms 3ms tinygo 0.21.0
go 2.go 4730ms 9.0ms 39.6MB 4703ms 13ms tinygo 0.21.0

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
go 2.go 76ms 8.3ms 8.2MB 127ms 0ms go 1.17.3
go 1.go 114ms 2.7ms 8.3MB 123ms 0ms go 1.17.3
go 1.go 176ms 1.2ms 3.1MB 167ms 0ms tinygo 0.21.0
go 2.go 217ms 0.8ms 3.6MB 207ms 0ms tinygo 0.21.0

coro-prime-sieve

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
go 1.go 128ms 46ms 5.3MB 160ms 3ms go 1.17.3
go 1.go 291ms 10ms 65.9MB 257ms 10ms tinygo 0.21.0
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
go 1.go 93ms 4.2ms 9.9MB 43ms 20ms go 1.17.3
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
go 3.go 1210ms 2.3ms 2.8MB 2330ms 0ms go 1.17.3
go 3.go 3170ms 4.5ms 49.1MB 3143ms 13ms tinygo 0.21.0
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
go 3.go 125ms 2.7ms 4.8MB 183ms 0ms go 1.17.3
go 3.go 348ms 0.9ms 48.6MB 323ms 10ms tinygo 0.21.0
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
go 3.go 509ms 29ms 2.8MB 400ms 23ms go 1.17.3

Input: 250000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
go 3.go 51ms 4.2ms 3.3MB 40ms 0ms go 1.17.3
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
go 1.go 1.4ms 0.3ms 0.2MB 0ms 0ms tinygo 0.21.0
go 1.go 3.3ms 2.1ms 2.7MB 0ms 0ms go 1.17.3
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
go 1.go 746ms 84ms 167.5MB 797ms 437ms go 1.17.3
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
go 1.go 153ms 7.6ms 40.5MB 93ms 77ms go 1.17.3
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
go 1.go 181ms 8.8ms 18.6MB 163ms 3ms go 1.17.3
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
go 1.go 1041ms 4.3ms 116.7MB 1013ms 50ms go 1.17.3
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
go 1.go 2213ms 3.9ms 11.8MB 4333ms 0ms go 1.17.3
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
go 1.go 43ms 2.4ms 3.5MB 70ms 0ms go 1.17.3
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
go 1.go 509ms 0.9ms 0.0MB 500ms 0ms tinygo 0.21.0
go 1.go 528ms 1.6ms 2.8MB 517ms 0ms go 1.17.3
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
go 1.go 52ms 0.8ms 0.0MB 43ms 0ms tinygo 0.21.0
go 1.go 57ms 0.7ms 2.8MB 50ms 0ms go 1.17.3
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
go 1.go 12ms 1.0ms 2.0MB 0ms 0ms tinygo 0.21.0
go 1.go 14ms 2.6ms 2.8MB 10ms 0ms go 1.17.3
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
go 8.go 1254ms 0.8ms 8.5MB 1243ms 0ms go 1.17.3
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
go 8.go 297ms 0.4ms 8.5MB 290ms 0ms go 1.17.3
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
go 8.go 26ms 3.8ms 8.3MB 13ms 0ms go 1.17.3
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
go 4.go 583ms 7.2ms 4.8MB 1070ms 0ms go 1.17.3
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
go 4.go 52ms 4.9ms 4.8MB 63ms 0ms go 1.17.3
dart 1.dart 92ms 6.1ms 12.3MB 77ms 0ms dart 2.14.4
go 4.go 420ms 3.4ms 0.3MB 410ms 0ms tinygo 0.21.0