The Computer Language
Benchmarks Game

Chapel programs versus C++ g++

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Chapel 1.60 22,088 501 1.60 99% 4% 2% 1%
C++ g++ 1.89 3,740 508 1.89 2% 99% 0% 2%
fasta
source secs mem gz cpu cpu load
Chapel 1.84 32,132 1392 5.98 99% 75% 77% 76%
C++ g++ 1.47 9,484 2291 5.13 88% 88% 87% 88%
fannkuch-redux
source secs mem gz cpu cpu load
Chapel 13.25 33,972 728 52.74 100% 99% 100% 99%
C++ g++ 10.58 2,520 950 41.88 100% 100% 99% 98%
regex-redux
source secs mem gz cpu cpu load
Chapel 10.58 1,138,908 477 20.89 100% 14% 14% 73%
C++ g++ 6.75 183,256 700 9.80 100% 39% 8% 0%
spectral-norm
source secs mem gz cpu cpu load
Chapel 4.00 33,332 310 15.85 100% 99% 99% 99%
C++ g++ 2.01 1,792 1044 8.00 100% 100% 100% 100%
mandelbrot
source secs mem gz cpu cpu load
Chapel 12.17 59,756 455 48.40 100% 100% 100% 99%
C++ g++ 5.82 33,952 726 22.40 96% 95% 95% 100%
n-body
source secs mem gz cpu cpu load
Chapel 21.55 20,688 962 21.55 100% 0% 1% 0%
C++ g++ 9.30 1,712 1763 9.29 100% 1% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Chapel 1.57 282,352 643 2.06 99% 16% 8% 14%
C++ g++ 0.59 217,564 2275 0.84 26% 78% 12% 34%
binary-trees
source secs mem gz cpu cpu load
Chapel 15.65 341,416 554 51.70 100% 81% 80% 71%
C++ g++ 3.36 158,320 846 10.59 81% 82% 78% 75%
k-nucleotide
source secs mem gz cpu cpu load
Chapel 33.87 281,012 1063 119.14 100% 94% 72% 86%
C++ g++ 7.15 164,080 1252 24.21 82% 83% 80% 96%
Chapel

chpl Version 1.14.0
Copyright (c) 2004-2016, Cray Inc.

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609