Chapel VS D benchmarks

Current benchmark data was generated on Thu Sep 22 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (Model 106)

* -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
chapel 4.chpl 2299ms 1.2ms 58.2MB 2277ms 13ms chpl 1.27.0
chapel 3.chpl 2433ms 5.5ms 50.3MB 2413ms 13ms chpl 1.27.0
d 1.d 3009ms 27ms 75.1MB 3247ms 0ms ldc2 1.30.0
d 1.d 4697ms 26ms 124.4MB 4803ms 20ms dmd 2.100.2

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 222ms 0.5ms 13.1MB 210ms 3ms chpl 1.27.0
chapel 4.chpl 222ms 7.3ms 26.1MB 210ms 0ms chpl 1.27.0
d 1.d 260ms 0.9ms 15.1MB 247ms 0ms ldc2 1.30.0
d 1.d 390ms 4.8ms 16.3MB 380ms 0ms dmd 2.100.2

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 4004ms 54ms 169.4MB 7737ms 47ms chpl 1.27.0
d 1.d timeout 0.0ms 0.0MB 0ms 0ms dmd 2.100.2
d 1.d timeout 0.0ms 0.0MB 0ms 0ms ldc2 1.30.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 263ms 2.4ms 30.2MB 480ms 3ms chpl 1.27.0
d 1.d 1328ms 4.7ms 10.2MB 1313ms 0ms ldc2 1.30.0
d 1.d 1640ms 9.4ms 9.4MB 1620ms 7ms dmd 2.100.2

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 97ms 0.5ms 36.1MB 90ms 0ms chpl 1.27.0
d 1.d 3825ms 4.1ms 8.0MB 3810ms 0ms ldc2 1.30.0
d 1.d 4476ms 0.9ms 8.9MB 4463ms 0ms dmd 2.100.2

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 46ms 1.3ms 34.1MB 37ms 3ms chpl 1.27.0
d 1.d 656ms 1.6ms 7.1MB 643ms 0ms ldc2 1.30.0
d 1.d 811ms 0.8ms 8.5MB 797ms 0ms dmd 2.100.2

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 147ms 2.2ms 32.0MB 250ms 3ms chpl 1.27.0
d 1.d 202ms 0.8ms 28.2MB 183ms 3ms ldc2 1.30.0
d 1.d 770ms 1.1ms 47.8MB 753ms 7ms dmd 2.100.2

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 24ms 1.2ms 7.9MB 17ms 0ms ldc2 1.30.0
chapel 5.chpl 34ms 1.5ms 32.0MB 30ms 7ms chpl 1.27.0
d 1.d 81ms 1.0ms 9.9MB 70ms 0ms dmd 2.100.2

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 2.4ms 0.6ms 2.9MB 0ms 0ms ldc2 1.30.0
d 1.d 2.7ms 0.7ms 4.0MB 0ms 0ms dmd 2.100.2
chapel 1.chpl 18ms 3.7ms 32.4MB 10ms 0ms chpl 1.27.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 936ms 1.2ms 100.4MB 1733ms 13ms chpl 1.27.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 157ms 2.7ms 90.4MB 257ms 10ms chpl 1.27.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 363ms 2.4ms 32.4MB 350ms 7ms chpl 1.27.0
d 1.d 424ms 0.4ms 1.2MB 410ms 0ms ldc2 1.30.0
d 2.d 435ms 0.2ms 1.2MB 423ms 0ms ldc2 1.30.0
d 1.d 1533ms 0.2ms 1.9MB 1520ms 0ms dmd 2.100.2
d 2.d 2677ms 1.5ms 2.0MB 2667ms 0ms dmd 2.100.2

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 2.d 46ms 0.2ms 1.2MB 40ms 0ms ldc2 1.30.0
d 1.d 46ms 0.7ms 1.2MB 40ms 0ms ldc2 1.30.0
chapel 2.chpl 56ms 1.3ms 32.4MB 50ms 0ms chpl 1.27.0
d 1.d 156ms 0.1ms 1.9MB 143ms 0ms dmd 2.100.2
d 2.d 271ms 0.3ms 2.0MB 260ms 0ms dmd 2.100.2

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 593ms 1.5ms 34.1MB 580ms 7ms chpl 1.27.0
d 1.d 3412ms 6.5ms 7.9MB 3407ms 17ms ldc2 1.30.0
d 1.d timeout 0.0ms 0.0MB 0ms 0ms dmd 2.100.2

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 154ms 1.9ms 34.1MB 143ms 3ms chpl 1.27.0
d 1.d 807ms 1.8ms 7.8MB 797ms 3ms ldc2 1.30.0
d 1.d 1693ms 8.3ms 8.8MB 1683ms 0ms dmd 2.100.2

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 2015ms 13ms 251.7MB 1870ms 133ms chpl 1.27.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 222ms 1.0ms 56.8MB 203ms 10ms chpl 1.27.0

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1536ms 10.0ms 32.3MB 1527ms 0ms chpl 1.27.0
d 1.d timeout 0.0ms 0.0MB 0ms 0ms dmd 2.100.2
d 1.d timeout 0.0ms 0.0MB 0ms 0ms ldc2 1.30.0

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 398ms 0.9ms 32.3MB 383ms 3ms chpl 1.27.0
d 1.d 1453ms 4.1ms 3.9MB 1443ms 0ms ldc2 1.30.0
d 1.d 3195ms 3.9ms 5.2MB 3180ms 7ms dmd 2.100.2

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 2299ms 91ms 32.5MB 4450ms 7ms chpl 1.27.0
chapel 1.chpl 4375ms 0.8ms 32.5MB 4363ms 3ms chpl 1.27.0
d 1.d 4595ms 0.9ms 3.8MB 4580ms 0ms ldc2 1.30.0
d 1.d 4782ms 2.0ms 5.0MB 4770ms 0ms dmd 2.100.2

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 581ms 0.2ms 32.5MB 1107ms 0ms chpl 1.27.0
chapel 1.chpl 1110ms 0.7ms 32.4MB 1100ms 3ms chpl 1.27.0
d 1.d 1152ms 1.1ms 3.5MB 1140ms 0ms ldc2 1.30.0
d 1.d 1201ms 3.3ms 4.4MB 1187ms 0ms dmd 2.100.2

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 165ms 2.1ms 32.5MB 287ms 0ms chpl 1.27.0
d 1.d 291ms 0.3ms 3.2MB 280ms 0ms ldc2 1.30.0
d 1.d 303ms 0.2ms 4.0MB 290ms 0ms dmd 2.100.2
chapel 1.chpl 306ms 19ms 32.4MB 283ms 10ms chpl 1.27.0