Chapel VS Odin benchmarks

Current benchmark data was generated on Mon Feb 06 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8272CL 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
chapel 4.chpl 2503ms 10ms 60.2MB 2460ms 20ms chpl 1.29.0
chapel 3.chpl 2798ms 9.2ms 64.2MB 2760ms 27ms chpl 1.29.0
odin 1.odin 4635ms 17ms 49.5MB 4597ms 17ms odin 2023

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 4.chpl 235ms 3.4ms 28.0MB 210ms 7ms chpl 1.29.0
chapel 3.chpl 244ms 1.0ms 24.0MB 227ms 0ms chpl 1.29.0
odin 1.odin 398ms 6.4ms 7.5MB 383ms 0ms odin 2023

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 4744ms 72ms 61.5MB 9257ms 43ms chpl 1.29.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 319ms 15ms 34.1MB 570ms 10ms chpl 1.29.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 88ms 3.7ms 7.4MB 73ms 0ms chpl 1.29.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 42ms 3.1ms 22.8MB 27ms 3ms chpl 1.29.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 135ms 1.6ms 3.8MB 227ms 3ms chpl 1.29.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 27ms 3.1ms 14.6MB 27ms 0ms chpl 1.29.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1.odin 1.8ms 0.7ms 1.3MB 0ms 0ms odin 2023
chapel 1.chpl 11ms 0.7ms 2.6MB 10ms 0ms chpl 1.29.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1-m.odin 932ms 4.7ms 46.5MB 1617ms 50ms odin 2023
chapel 3-m.chpl 1105ms 20ms 80.4MB 2030ms 40ms chpl 1.29.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 187ms 6.2ms 68.8MB 303ms 13ms chpl 1.29.0
odin 1.odin 219ms 1.6ms 32.7MB 263ms 40ms odin 2023

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 400ms 2.9ms 3.6MB 387ms 0ms chpl 1.29.0
odin 1-i.odin 559ms 1.2ms 1.3MB 550ms 0ms odin 2023
odin 1.odin 2350ms 2.1ms 1.3MB 2337ms 0ms odin 2023

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
odin 1-i.odin 58ms 0.6ms 1.3MB 50ms 0ms odin 2023
chapel 2.chpl 59ms 3.3ms 30.2MB 43ms 0ms chpl 1.29.0
odin 1.odin 237ms 0.2ms 1.2MB 230ms 0ms odin 2023

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 484ms 2.7ms 15.6MB 467ms 0ms chpl 1.29.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 126ms 0.8ms 11.0MB 107ms 7ms chpl 1.29.0

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 1908ms 24ms 221.6MB 1723ms 170ms chpl 1.29.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 207ms 2.8ms 46.9MB 163ms 23ms chpl 1.29.0

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1487ms 0.9ms 32.3MB 1467ms 7ms chpl 1.29.0

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 389ms 3.8ms 32.3MB 370ms 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 1998ms 78ms 32.3MB 3857ms 7ms chpl 1.29.0
odin 1.odin 3552ms 1.5ms 2.8MB 3540ms 0ms odin 2023
chapel 1.chpl 3774ms 2.9ms 32.3MB 3747ms 7ms chpl 1.29.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 509ms 1.1ms 32.3MB 963ms 3ms chpl 1.29.0
odin 1.odin 891ms 1.2ms 2.1MB 877ms 0ms odin 2023
chapel 1.chpl 961ms 1.5ms 32.3MB 943ms 7ms chpl 1.29.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 146ms 1.8ms 32.3MB 247ms 3ms chpl 1.29.0
odin 1.odin 225ms 0.1ms 1.9MB 213ms 0ms odin 2023
chapel 1.chpl 258ms 1.7ms 32.3MB 240ms 7ms chpl 1.29.0