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
dart 4.dart 836ms 6.1ms 167.0MB 1230ms 163ms dart 2.14.4
csharp 2.cs 1097ms 33ms 463.2MB 1640ms 243ms dotnet 6.0.100
csharp 1.cs 1555ms 17ms 338.7MB 1420ms 180ms dotnet 6.0.100
csharp 1.cs 2380ms 11ms 108.3MB 2877ms 190ms mono 6.12.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
csharp 1.cs 101ms 22ms 37.9MB 67ms 13ms mono 6.12.0
csharp 2.cs 125ms 12ms 43.1MB 150ms 3ms mono 6.12.0
csharp 2.cs 148ms 32ms 79.1MB 120ms 40ms dotnet 6.0.100
csharp 1.cs 175ms 29ms 77.6MB 113ms 20ms dotnet 6.0.100

coro-prime-sieve

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 1.cs 457ms 53ms 73.0MB 523ms 53ms dotnet 6.0.100
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
csharp 1.cs 939ms 28ms 46.1MB 860ms 33ms dotnet 6.0.100
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
csharp 9.cs 1271ms 0.1ms 27.6MB 2413ms 0ms dotnet 6.0.100
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
csharp 9.cs 176ms 31ms 28.1MB 223ms 7ms dotnet 6.0.100
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
csharp 5.cs 486ms 32ms 102.3MB 483ms 93ms dotnet 6.0.100
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
csharp 5.cs 129ms 27ms 40.2MB 83ms 27ms dotnet 6.0.100

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
csharp 1.cs 30ms 9.1ms 23.9MB 10ms 2ms mono 6.12.0
csharp 1.cs 61ms 22ms 28.9MB 22ms 4ms dotnet 6.0.100

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 2.cs 968ms 31ms 152.8MB 873ms 477ms dotnet 6.0.100
csharp 1.cs 1006ms 52ms 169.6MB 1033ms 470ms dotnet 6.0.100
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
csharp 2.cs 597ms 80ms 79.5MB 487ms 130ms dotnet 6.0.100
csharp 1.cs 607ms 80ms 89.2MB 583ms 150ms dotnet 6.0.100
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
csharp 2.cs 379ms 36ms 67.6MB 300ms 43ms dotnet 6.0.100
csharp 1.cs 695ms 97ms 144.8MB 620ms 47ms dotnet 6.0.100

Input: canada 15

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 2.cs 2083ms 15ms 282.7MB 2153ms 113ms dotnet 6.0.100
dart 1.dart 2680ms 570ms 242.8MB 2353ms 157ms dart 2.14.4
csharp 1.cs 3335ms 32ms 798.7MB 3243ms 380ms dotnet 6.0.100

mandelbrot

Input: 8000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 9.cs 1648ms 3.0ms 44.8MB 3123ms 13ms dotnet 6.0.100
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
csharp 9.cs 122ms 37ms 34.6MB 100ms 3ms dotnet 6.0.100

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 8.cs 594ms 2.8ms 27.3MB 563ms 0ms dotnet 6.0.100
dart 3.dart 1033ms 26ms 13.9MB 1017ms 0ms dart 2.14.4
csharp 8.cs 1228ms 9.9ms 26.4MB 1217ms 0ms mono 6.12.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 8.cs 110ms 4.1ms 29.1MB 83ms 0ms dotnet 6.0.100
dart 3.dart 114ms 1.1ms 13.9MB 100ms 0ms dart 2.14.4
csharp 8.cs 146ms 3.7ms 25.4MB 133ms 0ms mono 6.12.0

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
csharp 8.cs 58ms 16ms 25.1MB 33ms 3ms mono 6.12.0
csharp 8.cs 84ms 30ms 25.2MB 33ms 10ms dotnet 6.0.100

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
csharp 1.cs 1641ms 312ms 79.5MB 1290ms 67ms dotnet 6.0.100

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
csharp 1.cs 205ms 22ms 73.5MB 90ms 47ms dotnet 6.0.100

spectral-norm

Input: 4000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
csharp 3.cs 651ms 6.2ms 28.4MB 1163ms 3ms dotnet 6.0.100
dart 1.dart 1300ms 1.6ms 13.8MB 1287ms 0ms dart 2.14.4
csharp 3.cs 2661ms 114ms 28.4MB 5037ms 10ms mono 6.12.0

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
csharp 3.cs 125ms 37ms 29.8MB 113ms 7ms dotnet 6.0.100
csharp 3.cs 209ms 13ms 29.6MB 327ms 10ms mono 6.12.0