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.57 5,512 1396 5.60 99% 86% 85% 86%
Julia 4.93 215,044 1049 5.36 3% 3% 99% 3%
reverse-complement
source secs mem gz busy cpu load
Chapel 2.04 1,497,276 750 4.45 96% 48% 56% 19%
Julia 4.85 714,064 724 5.36 2% 5% 4% 99%
binary-trees
source secs mem gz busy cpu load
Chapel 14.31 366,428 474 44.27 100% 76% 76% 58%
Julia 23.88 634,308 372 78.75 92% 79% 80% 79%
pidigits
source secs mem gz busy cpu load
Chapel 1.63 6,236 501 1.75 99% 1% 3% 4%
Julia 2.45 168,968 674 2.79 5% 98% 5% 5%
spectral-norm
source secs mem gz busy cpu load
Chapel 3.98 5,508 310 15.78 99% 99% 99% 99%
Julia 4.81 174,632 370 17.16 86% 86% 88% 97%
n-body
source secs mem gz busy cpu load
Chapel 23.83 5,480 962 24.12 100% 1% 1% 0%
Julia 22.34 180,516 1541 23.22 2% 1% 2% 99%
k-nucleotide
source secs mem gz busy cpu load
Chapel 17.00 289,284 1029 64.44 100% 93% 93% 93%
Julia 14.36 334,520 1437 40.97 25% 100% 82% 79%
mandelbrot
source secs mem gz busy cpu load
Chapel 5.42 36,112 620 21.47 99% 99% 99% 99%
Julia 4.50 224,692 713 12.64 74% 74% 75% 58%
fannkuch-redux
source secs mem gz busy cpu load
Chapel 15.59 4,444 728 62.11 100% 100% 99% 100%
Julia 11.36 192,580 1067 42.32 95% 91% 93% 93%
regex-redux
source secs mem gz busy cpu load
Chapel 9.03 581,404 477 17.99 99% 17% 13% 70%
Julia 5.83 350,944 408 6.23 99% 3% 2% 2%
Chapel

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

Julia

julia version 1.2.0
export JULIA_NUM_THREADS=4