Dart Versus Ruby 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

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
ruby 1.rb 556ms 3.5ms 40.1MB 530ms 10ms ruby 3.0.3
ruby 1.rb 614ms 68ms 82.7MB 990ms 103ms ruby/jit 3.0.3
ruby 1.rb 1022ms 52ms 642.3MB 1540ms 290ms truffleruby 21.3.0

coro-prime-sieve

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
ruby 1.rb 273ms 0.9ms 42.1MB 240ms 17ms ruby 3.0.3
ruby 1.rb 449ms 7.0ms 91.3MB 727ms 80ms ruby/jit 3.0.3
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
ruby 6.rb 3586ms 349ms 83.5MB 5213ms 310ms ruby/jit 3.0.3
ruby 6.rb 4490ms 31ms 39.2MB 4357ms 50ms ruby 3.0.3

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
ruby 6.rb 525ms 10ms 31.0MB 483ms 13ms ruby 3.0.3
ruby 6.rb 632ms 24ms 78.9MB 970ms 103ms ruby/jit 3.0.3
ruby 6.rb 3203ms 235ms 662.6MB 2747ms 533ms truffleruby 21.3.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
ruby 1.rb 36ms 4.2ms 120.3MB 18ms 16ms truffleruby 21.3.0
ruby 1.rb 74ms 0.4ms 29.8MB 50ms 10ms ruby 3.0.3
ruby 1.rb 436ms 6.4ms 79.6MB 560ms 70ms ruby/jit 3.0.3

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
ruby 1.rb 443ms 5.1ms 54.3MB 413ms 20ms ruby 3.0.3
ruby 1.rb 465ms 10ms 100.6MB 747ms 70ms ruby/jit 3.0.3

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
ruby 1.rb 3927ms 19ms 187.3MB 4150ms 133ms ruby/jit 3.0.3
ruby 1.rb 3961ms 100ms 185.8MB 3863ms 83ms ruby 3.0.3

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
ruby 2.rb 1394ms 2.6ms 552.3MB 1647ms 240ms truffleruby 21.3.0

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
ruby 2.rb 513ms 2.4ms 531.0MB 720ms 227ms truffleruby 21.3.0
ruby 2.rb 2609ms 13ms 103.5MB 4717ms 177ms ruby/jit 3.0.3
ruby 2.rb 3279ms 8.5ms 29.7MB 3253ms 13ms ruby 3.0.3

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
ruby 2.rb 348ms 4.5ms 427.2MB 457ms 170ms truffleruby 21.3.0
ruby 2.rb 725ms 10ms 29.8MB 700ms 10ms ruby 3.0.3
ruby 2.rb 1096ms 44ms 103.4MB 2003ms 63ms ruby/jit 3.0.3

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
ruby 1.rb 2851ms 6.9ms 165.5MB 2757ms 80ms ruby 3.0.3
ruby 1.rb 3061ms 20ms 165.3MB 5370ms 377ms ruby/jit 3.0.3
ruby 1.rb 3218ms 293ms 680.8MB 4857ms 357ms truffleruby 21.3.0

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
ruby 1.rb 256ms 2.0ms 58.3MB 217ms 23ms ruby 3.0.3
ruby 1.rb 455ms 19ms 106.9MB 757ms 60ms ruby/jit 3.0.3
ruby 1.rb 640ms 61ms 559.0MB 697ms 230ms truffleruby 21.3.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
ruby 4.rb 1337ms 9.0ms 641.5MB 1917ms 277ms truffleruby 21.3.0
ruby 4.rb 3732ms 39ms 80.3MB 4460ms 113ms ruby/jit 3.0.3