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.66 5,296 1396 5.97 99% 87% 87% 87%
Julia 5.01 189,584 1049 5.82 2% 12% 99% 3%
binary-trees
source secs mem gz busy cpu load
Chapel 14.61 366,656 474 44.44 100% 74% 75% 56%
Julia 21.19 645,680 372 66.24 74% 74% 77% 88%
pidigits
source secs mem gz busy cpu load
Chapel 1.63 6,236 423 1.72 99% 2% 1% 2%
Julia 2.19 166,356 674 2.55 6% 99% 6% 6%
spectral-norm
source secs mem gz busy cpu load
Chapel 3.99 5,380 310 15.83 99% 99% 99% 99%
Julia 4.74 171,668 370 17.14 88% 99% 87% 88%
n-body
source secs mem gz busy cpu load
Chapel 21.85 5,508 962 22.10 100% 0% 0% 1%
Julia 22.53 179,180 1541 23.14 100% 1% 1% 1%
k-nucleotide
source secs mem gz busy cpu load
Chapel 16.75 291,856 1029 63.26 100% 93% 93% 92%
Julia 14.89 345,828 1437 29.83 41% 100% 22% 38%
mandelbrot
source secs mem gz busy cpu load
Chapel 5.82 36,220 620 23.04 99% 99% 99% 99%
Julia 4.36 233,396 713 10.72 77% 77% 36% 57%
reverse-complement
source secs mem gz busy cpu load
Chapel 6.33 996,912 643 8.11 99% 7% 6% 16%
Julia 4.54 701,556 724 4.93 85% 3% 4% 17%
fannkuch-redux
source secs mem gz busy cpu load
Chapel 15.53 4,548 728 61.90 100% 100% 99% 100%
Julia 11.12 188,240 1067 41.08 87% 91% 99% 93%
regex-redux
source secs mem gz busy cpu load
Chapel 9.37 554,260 477 18.22 99% 13% 13% 70%
Julia 5.91 469,380 408 6.32 3% 2% 99% 3%
Chapel

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

Julia

julia version 1.3.0
export JULIA_NUM_THREADS=4