The Computer Language
Benchmarks Game

Chapel versus Julia fastest programs

Back in April 2010, Russ Cox charitably suggested that only fannkuch-redux, fasta, k-nucleotide, mandlebrot, nbody, reverse-complement and spectral-norm were close to fair comparisons. As someone who implemented programming languages, his interest was "measuring the quality of the generated code when both compilers are presented with what amounts to the same program."

Differences in approach - to memory management, parallel programming, regex, arbitrary precision arithmetic, implementation technique - don't fit in that kind-of fair comparison — but we still have to deal with them.

These are only the fastest programs. There may be additional measurements for programs which seem more-like a fair comparison to you. Always look at the source code.

fasta
source secs mem gz busy cpu load
Chapel 1.61 5,812 1398 5.63 99% 83% 84% 83%
Julia 4.85 205,456 1049 5.35 4% 5% 2% 99%
reverse-complement
source secs mem gz busy cpu load
Chapel 2.08 1,497,376 707 4.76 96% 41% 56% 36%
Julia 5.50 697,412 667 5.99 8% 5% 3% 94%
binary-trees
source secs mem gz busy cpu load
Chapel 14.35 361,836 470 46.65 100% 58% 76% 91%
Julia 24.25 645,876 372 77.77 93% 76% 74% 77%
pidigits
source secs mem gz busy cpu load
Chapel 1.63 6,224 423 1.70 100% 1% 2% 1%
Julia 2.41 163,924 674 2.82 99% 7% 5% 5%
k-nucleotide
source secs mem gz busy cpu load
Chapel 17.15 293,404 1042 64.82 100% 92% 92% 93%
Julia 20.59 328,220 1373 52.21 62% 34% 99% 59%
spectral-norm
source secs mem gz busy cpu load
Chapel 3.98 5,212 310 15.77 99% 99% 99% 99%
Julia 4.71 160,908 370 17.43 90% 99% 91% 90%
n-body
source secs mem gz busy cpu load
Chapel 23.81 5,408 962 24.10 100% 0% 0% 1%
Julia 22.29 175,412 1541 23.56 3% 2% 1% 100%
mandelbrot
source secs mem gz busy cpu load
Chapel 5.42 36,060 620 21.43 100% 99% 99% 99%
Julia 4.33 197,672 713 13.70 62% 99% 77% 78%
fannkuch-redux
source secs mem gz busy cpu load
Chapel 15.59 4,080 728 62.16 100% 100% 99% 100%
Julia 11.34 178,916 1067 43.47 95% 95% 95% 100%
regex-redux
source secs mem gz busy cpu load
Chapel 8.80 629,668 477 17.30 99% 13% 13% 71%
Julia 5.82 349,720 408 6.29 3% 3% 3% 99%
Chapel

chpl version 1.19.0
Copyright (c) 2004-2019, Cray Inc.

Julia

julia version 1.1.0
export JULIA_NUM_THREADS=4