The Computer Language
22.01 Benchmarks Game

Chapel versus Go fastest programs

Always look at the source code. These are only the fastest programs.

If they are manually vectorized SIMD, does the host language matter? You might not be interested in the most optimised programs.

Look at "mandelbrot" or "spectral-norm" or other measurement tables. Look at the other programs. Choose which programs you want to compare.

mandelbrot
source secs mem gz busy cpu load
Chapel 1.07 36,208 588 4.15 98% 97% 96% 96%
Go 3.73 33,904 905 14.86 100% 99% 99% 100%
binary-trees
source secs mem gz busy cpu load
Chapel 8.10 299,436 488 24.65 99% 57% 75% 73%
Go 12.48 659,828 666 49.71 100% 100% 100% 100%
fasta
source secs mem gz busy cpu load
Chapel 0.97 6,324 1391 3.52 98% 90% 89% 88%
Go 1.27 11,520 1404 3.81 66% 84% 77% 74%
k-nucleotide
source secs mem gz busy cpu load
Chapel 5.80 185,652 1031 20.55 99% 85% 84% 87%
Go 7.46 160,048 1607 28.57 96% 95% 95% 98%
pidigits
source secs mem gz busy cpu load
Chapel 0.76 7,432 423 0.85 100% 1% 5% 5%
Go 0.86 9,188 683 0.90 99% 3% 1% 1%
n-body
source secs mem gz busy cpu load
Chapel 6.23 5,232 971 6.31 100% 0% 1% 0%
Go 6.37 1,160 1200 6.42 0% 0% 0% 100%
regex-redux
source secs mem gz busy cpu load
Chapel 3.76 477,200 493 4.72 98% 9% 10% 8%
Go 3.80 324,536 810 6.06 30% 19% 91% 20%
fannkuch-redux
source secs mem gz busy cpu load
Chapel 8.29 5,404 731 33.00 100% 100% 99% 99%
Go 8.31 2,272 969 33.19 100% 100% 100% 100%
spectral-norm
source secs mem gz busy cpu load
Chapel 1.49 5,228 310 5.82 99% 97% 97% 98%
Go 1.43 1,992 548 5.68 99% 99% 99% 100%
reverse-complement
source secs mem gz busy cpu load
Chapel 1.68 1,883,600 755 3.06 95% 29% 27% 31%
Go 1.34 1,610,444 996 2.20 21% 99% 15% 30%
Chapel

chpl version 1.25.1
built with LLVM version 11.0.1
Copyright 2020-2021 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.

Go

go version go1.17.6 linux/amd64