Chapel VS Dart benchmarks

Current benchmark data was generated on Wed Feb 08 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz (Model 85)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 1302ms 18ms 85.4MB 1263ms 43ms dart/exe 2.19.2
dart 1.dart 1362ms 1.6ms 86.0MB 1327ms 43ms dart/exe 3.0.0-187.0.dev
chapel 4.chpl 2946ms 5.9ms 64.3MB 2910ms 20ms chpl 1.29.0
chapel 3.chpl 3233ms 39ms 64.3MB 3197ms 17ms chpl 1.29.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 123ms 2.4ms 47.9MB 97ms 17ms dart/exe 2.19.2
dart 1.dart 129ms 2.0ms 47.6MB 97ms 23ms dart/exe 3.0.0-187.0.dev
chapel 4.chpl 279ms 2.6ms 34.3MB 260ms 7ms chpl 1.29.0
chapel 3.chpl 294ms 2.5ms 32.1MB 270ms 7ms chpl 1.29.0

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 4803ms 115ms 83.5MB 9277ms 70ms chpl 1.29.0
dart 1.dart timeout 0.0ms 23.7MB 4880ms 93ms dart/exe 2.19.2
dart 1.dart timeout 0.0ms 26.1MB 4900ms 60ms dart/exe 3.0.0-187.0.dev

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 348ms 12ms 48.1MB 623ms 20ms chpl 1.29.0
dart 1.dart 563ms 14ms 15.8MB 527ms 17ms dart/exe 2.19.2
dart 1.dart 623ms 37ms 16.0MB 567ms 20ms dart/exe 3.0.0-187.0.dev

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 104ms 0.6ms 18.5MB 90ms 0ms chpl 1.29.0
dart 1.dart timeout 0.0ms 22.1MB 4977ms 10ms dart/exe 2.19.2
dart 1.dart timeout 0.0ms 21.5MB 4977ms 10ms dart/exe 3.0.0-187.0.dev

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 46ms 3.8ms 34.1MB 37ms 0ms chpl 1.29.0
dart 1.dart 2024ms 15ms 17.2MB 2000ms 17ms dart/exe 2.19.2
dart 1.dart 2061ms 26ms 15.9MB 2017ms 23ms dart/exe 3.0.0-187.0.dev

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 164ms 5.7ms 32.0MB 277ms 3ms chpl 1.29.0
dart 1.dart 587ms 19ms 15.9MB 570ms 0ms dart/exe 3.0.0-187.0.dev
dart 1.dart 626ms 2.3ms 16.8MB 607ms 0ms dart/exe 2.19.2

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 33ms 3.1ms 22.0MB 30ms 7ms chpl 1.29.0
dart 1.dart 74ms 3.5ms 15.0MB 57ms 0ms dart/exe 3.0.0-187.0.dev
dart 1.dart 76ms 1.9ms 16.4MB 63ms 0ms dart/exe 2.19.2

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 8.4ms 0.3ms 12.2MB 0ms 0ms dart/exe 3.0.0-187.0.dev
chapel 1.chpl 17ms 1.4ms 22.2MB 7ms 3ms chpl 1.29.0
dart 1.dart 611ms 547ms 13.4MB 0ms 0ms dart/exe 2.19.2

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 1180ms 16ms 85.0MB 2157ms 33ms chpl 1.29.0
dart 3-m.dart 3627ms 75ms 283.4MB 6467ms 117ms dart/exe 3.0.0-187.0.dev
dart 3-m.dart 3661ms 88ms 255.4MB 6563ms 120ms dart/exe 2.19.2

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 201ms 2.7ms 76.7MB 310ms 23ms chpl 1.29.0
dart 3-m.dart 553ms 21ms 199.6MB 880ms 87ms dart/exe 2.19.2
dart 3-m.dart 559ms 21ms 200.4MB 877ms 87ms dart/exe 3.0.0-187.0.dev

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 485ms 2.4ms 22.2MB 467ms 7ms chpl 1.29.0
dart 3.dart 736ms 6.8ms 13.9MB 717ms 0ms dart/exe 3.0.0-187.0.dev
dart 3.dart 742ms 4.1ms 13.8MB 720ms 0ms dart/exe 2.19.2

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 70ms 1.7ms 32.2MB 47ms 7ms chpl 1.29.0
dart 3.dart 85ms 0.6ms 12.1MB 70ms 0ms dart/exe 2.19.2
dart 3.dart 86ms 2.4ms 11.5MB 70ms 0ms dart/exe 3.0.0-187.0.dev

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 582ms 3.7ms 30.1MB 560ms 3ms chpl 1.29.0
dart 2.dart 1892ms 32ms 19.5MB 1820ms 53ms dart/exe 3.0.0-187.0.dev
dart 2.dart 2080ms 11ms 21.7MB 2023ms 43ms dart/exe 2.19.2

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 151ms 2.2ms 20.8MB 130ms 3ms chpl 1.29.0
dart 2.dart 471ms 4.6ms 22.0MB 420ms 33ms dart/exe 3.0.0-187.0.dev
dart 2.dart 534ms 23ms 20.2MB 483ms 33ms dart/exe 2.19.2

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 2230ms 32ms 221.7MB 2030ms 187ms chpl 1.29.0
dart 1.dart timeout 0.0ms 103.2MB 4937ms 37ms dart/exe 2.19.2
dart 1.dart timeout 0.0ms 103.9MB 4940ms 30ms dart/exe 3.0.0-187.0.dev

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 241ms 0.5ms 50.8MB 203ms 20ms chpl 1.29.0
dart 1.dart 825ms 3.8ms 55.9MB 793ms 17ms dart/exe 3.0.0-187.0.dev
dart 1.dart 860ms 27ms 55.6MB 823ms 17ms dart/exe 2.19.2

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1778ms 5.0ms 32.4MB 1753ms 10ms chpl 1.29.0

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 461ms 0.8ms 32.4MB 447ms 3ms chpl 1.29.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 2324ms 13ms 32.3MB 4533ms 10ms chpl 1.29.0
chapel 1.chpl 4465ms 18ms 32.4MB 4443ms 7ms chpl 1.29.0
dart 1.dart timeout 0.0ms 11.8MB 4980ms 0ms dart/exe 2.19.2
dart 1.dart timeout 0.0ms 14.0MB 4980ms 0ms dart/exe 3.0.0-187.0.dev

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 654ms 50ms 32.3MB 1177ms 10ms chpl 1.29.0
chapel 1.chpl 1147ms 4.0ms 32.3MB 1130ms 3ms chpl 1.29.0
dart 1.dart 1455ms 14ms 12.4MB 1437ms 0ms dart/exe 3.0.0-187.0.dev
dart 1.dart 1702ms 37ms 13.7MB 1680ms 0ms dart/exe 2.19.2

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 179ms 4.2ms 32.3MB 300ms 10ms chpl 1.29.0
chapel 1.chpl 309ms 5.9ms 32.3MB 287ms 7ms chpl 1.29.0
dart 1.dart 372ms 5.1ms 13.9MB 353ms 0ms dart/exe 3.0.0-187.0.dev
dart 1.dart 439ms 18ms 13.9MB 423ms 0ms dart/exe 2.19.2