Chapel VS D benchmarks

Current benchmark data was generated on Mon Jun 23 2025, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -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 1973ms 34ms 62.3MB 1967ms 0ms chpl 1.31.0
chapel 3.chpl 2236ms 21ms 62.4MB 2227ms 0ms chpl 1.31.0
d 1.d 2244ms 4.4ms 312.4MB 2210ms 43ms ldc2 1.41.0
d 1.d 3045ms 8.9ms 315.0MB 3220ms 50ms dmd 2.111.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 4.chpl 185ms 1.3ms 32.4MB 180ms 0ms chpl 1.31.0
chapel 3.chpl 188ms 3.2ms 32.4MB 183ms 0ms chpl 1.31.0
d 1.d 208ms 3.2ms 207.1MB 190ms 10ms ldc2 1.41.0
d 1.d 261ms 1.1ms 208.7MB 237ms 13ms dmd 2.111.0

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 2341ms 58ms 699.6MB 4543ms 103ms chpl 1.31.0
d 1.d timeout 0.0ms 18.2MB 4963ms 23ms dmd 2.111.0
d 1.d timeout 0.0ms 15.3MB 4957ms 27ms ldc2 1.41.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 211ms 12ms 658.0MB 330ms 60ms chpl 1.31.0
d 1.d 1081ms 24ms 10.3MB 1053ms 17ms ldc2 1.41.0
d 1.d 1398ms 9.7ms 12.3MB 1370ms 13ms dmd 2.111.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 72ms 1.7ms 32.5MB 70ms 0ms chpl 1.31.0
d 1.d 2555ms 6.6ms 8.0MB 2543ms 0ms ldc2 1.41.0
d 1.d 2868ms 6.9ms 10.4MB 2853ms 0ms dmd 2.111.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 33ms 1.6ms 30.5MB 30ms 0ms chpl 1.31.0
d 1.d 442ms 1.2ms 8.1MB 430ms 0ms ldc2 1.41.0
d 1.d 519ms 1.1ms 10.5MB 510ms 0ms dmd 2.111.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 109ms 1.6ms 28.4MB 197ms 0ms chpl 1.31.0
d 1.d 112ms 2.0ms 2.9MB 103ms 0ms ldc2 1.41.0
d 1.d 653ms 24ms 4.8MB 643ms 0ms dmd 2.111.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 15ms 1.4ms 2.9MB 10ms 0ms ldc2 1.41.0
chapel 5.chpl 23ms 1.5ms 28.4MB 20ms 0ms chpl 1.31.0
d 1.d 68ms 1.5ms 4.8MB 60ms 0ms dmd 2.111.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 1.7ms 0.2ms 3.0MB 0ms 0ms ldc2 1.41.0
d 1.d 1.9ms 0.2ms 5.1MB 0ms 0ms dmd 2.111.0
chapel 1.chpl 11ms 0.4ms 28.8MB 0ms 0ms chpl 1.31.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1-m.d 675ms 14ms 47.5MB 2167ms 10ms ldc2 1.41.0
chapel 3-m.chpl 762ms 5.2ms 99.0MB 1443ms 10ms chpl 1.31.0
d 1-m.d 1936ms 52ms 50.6MB 6107ms 10ms dmd 2.111.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1-m.d 95ms 3.5ms 38.7MB 263ms 7ms ldc2 1.41.0
chapel 3-m.chpl 116ms 1.6ms 87.0MB 203ms 3ms chpl 1.31.0
d 1-m.d 211ms 8.5ms 40.9MB 643ms 13ms dmd 2.111.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 325ms 1.9ms 26.6MB 320ms 0ms chpl 1.31.0
d 2.d 361ms 1.5ms 2.9MB 350ms 0ms ldc2 1.41.0
d 1.d 361ms 1.0ms 2.9MB 350ms 0ms ldc2 1.41.0
d 1.d 683ms 2.8ms 4.6MB 673ms 0ms dmd 2.111.0
d 2.d 2027ms 4.0ms 4.6MB 2017ms 0ms dmd 2.111.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 1.d 38ms 0.4ms 2.9MB 30ms 0ms ldc2 1.41.0
d 2.d 39ms 0.4ms 2.9MB 30ms 0ms ldc2 1.41.0
chapel 2.chpl 46ms 1.1ms 28.8MB 40ms 0ms chpl 1.31.0
d 1.d 71ms 1.3ms 4.8MB 60ms 0ms dmd 2.111.0
d 2.d 213ms 7.6ms 4.8MB 203ms 0ms dmd 2.111.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 447ms 1.6ms 30.4MB 440ms 0ms chpl 1.31.0
d 1.d 2448ms 17ms 8.1MB 2423ms 410ms ldc2 1.41.0
d 1.d 4455ms 6.5ms 10.5MB 4357ms 523ms dmd 2.111.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 114ms 0.9ms 30.4MB 110ms 0ms chpl 1.31.0
d 1.d 585ms 1.9ms 8.1MB 563ms 107ms ldc2 1.41.0
d 1.d 1056ms 1.9ms 10.3MB 1033ms 117ms dmd 2.111.0

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 3.d 579ms 2.7ms 172.3MB 760ms 23ms ldc2 1.41.0
d 3.d 1221ms 2.5ms 175.1MB 1400ms 33ms dmd 2.111.0
chapel 3.chpl 1401ms 0.9ms 220.3MB 1350ms 43ms chpl 1.31.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
d 3.d 67ms 4.3ms 28.6MB 73ms 0ms ldc2 1.41.0
d 3.d 131ms 3.2ms 31.5MB 140ms 0ms dmd 2.111.0
chapel 3.chpl 168ms 2.2ms 49.0MB 147ms 20ms chpl 1.31.0

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1180ms 4.7ms 29.1MB 1173ms 0ms chpl 1.31.0
d 1.d 4805ms 14ms 4.0MB 4753ms 380ms ldc2 1.41.0
d 1.d timeout 0.0ms 6.6MB 4943ms 310ms dmd 2.111.0

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 305ms 1.3ms 29.0MB 300ms 0ms chpl 1.31.0
d 1.d 1209ms 8.6ms 3.9MB 1190ms 93ms ldc2 1.41.0
d 1.d 2040ms 12ms 6.5MB 2020ms 113ms dmd 2.111.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 1915ms 3.4ms 28.9MB 3803ms 0ms chpl 1.31.0
d 1.d 3601ms 8.6ms 6.1MB 3593ms 0ms ldc2 1.41.0
d 1.d 3668ms 32ms 8.4MB 3657ms 0ms dmd 2.111.0
chapel 1.chpl 3721ms 7.6ms 28.8MB 3713ms 0ms chpl 1.31.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 491ms 1.8ms 28.9MB 957ms 0ms chpl 1.31.0
d 1.d 911ms 17ms 3.8MB 900ms 0ms ldc2 1.41.0
d 1.d 915ms 7.3ms 5.4MB 907ms 0ms dmd 2.111.0
chapel 1.chpl 956ms 29ms 28.8MB 953ms 0ms chpl 1.31.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 135ms 1.0ms 28.9MB 243ms 0ms chpl 1.31.0
d 1.d 229ms 1.2ms 3.1MB 220ms 0ms ldc2 1.41.0
d 1.d 235ms 1.0ms 5.0MB 223ms 0ms dmd 2.111.0
chapel 1.chpl 248ms 1.5ms 28.8MB 240ms 0ms chpl 1.31.0