Perl VS Chapel benchmarks

Current benchmark data was generated on Mon Dec 30 2024, 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 1953ms 6.1ms 66.3MB 1937ms 7ms chpl 1.31.0
chapel 3.chpl 2024ms 5.9ms 66.3MB 2007ms 7ms chpl 1.31.0
perl 1.pl timeout 0.0ms 77.8MB 4970ms 13ms perl 5.40.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 4.chpl 191ms 1.6ms 36.4MB 177ms 3ms chpl 1.31.0
chapel 3.chpl 194ms 1.4ms 36.4MB 187ms 0ms chpl 1.31.0
perl 1.pl 1811ms 29ms 14.3MB 1793ms 3ms perl 5.40.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 112ms 0.8ms 32.4MB 197ms 0ms chpl 1.31.0
perl 1.pl 3601ms 9.2ms 10.9MB 3590ms 0ms perl 5.40.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 28ms 0.3ms 32.4MB 17ms 3ms chpl 1.31.0
perl 1.pl 376ms 1.7ms 6.8MB 360ms 0ms perl 5.40.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl 2.7ms 0.4ms 5.1MB 0ms 0ms perl 5.40.0
chapel 1.chpl 17ms 2.0ms 32.8MB 10ms 0ms chpl 1.31.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 329ms 2.7ms 32.9MB 317ms 3ms chpl 1.31.0
perl 2.pl timeout 0.0ms 6.1MB 4990ms 0ms perl 5.40.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 51ms 0.3ms 32.8MB 40ms 3ms chpl 1.31.0
perl 2.pl 2734ms 15ms 6.1MB 2720ms 0ms perl 5.40.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 1923ms 22ms 32.9MB 3807ms 3ms chpl 1.31.0
chapel 1.chpl 3722ms 3.1ms 32.8MB 3713ms 0ms chpl 1.31.0
perl 4.pl timeout 0.0ms 13.9MB 19760ms 20ms perl 5.40.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 497ms 2.1ms 32.9MB 957ms 0ms chpl 1.31.0
chapel 1.chpl 946ms 5.0ms 32.8MB 937ms 7ms chpl 1.31.0
perl 4.pl timeout 0.0ms 13.1MB 19567ms 13ms perl 5.40.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 141ms 0.2ms 32.9MB 247ms 0ms chpl 1.31.0
chapel 1.chpl 254ms 2.0ms 32.8MB 243ms 0ms chpl 1.31.0
perl 4-m.pl 3442ms 70ms 13.6MB 13187ms 3ms perl 5.40.0