The Computer Language
Benchmarks Game

Chapel versus Python 3 fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

n-body
source secs mem gz busy cpu load
Chapel 6.79 5,388 971 7.09 100% 1% 0% 3%
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
spectral-norm
source secs mem gz busy cpu load
Chapel 1.46 5,204 310 5.80 99% 99% 99% 99%
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
mandelbrot
source secs mem gz busy cpu load
Chapel 3.32 36,104 588 13.13 99% 98% 99% 99%
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
fasta
source secs mem gz busy cpu load
Chapel 0.93 5,252 1391 3.36 100% 87% 88% 87%
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
fannkuch-redux
source secs mem gz busy cpu load
Chapel 9.35 4,288 731 37.30 100% 100% 100% 100%
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
binary-trees
source secs mem gz busy cpu load
Chapel 7.86 298,696 488 24.18 100% 57% 77% 74%
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
k-nucleotide
source secs mem gz busy cpu load
Chapel 10.43 177,052 996 38.90 100% 90% 91% 92%
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
reverse-complement
source secs mem gz busy cpu load
Chapel 1.65 1,882,564 755 3.51 96% 38% 38% 41%
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
pidigits
source secs mem gz busy cpu load
Chapel 0.75 6,516 512 0.75 99% 1% 0% 0%
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
regex-redux
source secs mem gz busy cpu load
Chapel 4.29 486,708 493 6.81 99% 21% 21% 17%
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Chapel

chpl version 1.23.0
Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright (c) 2004-2019, Cray Inc.

Python 3

Python 3.9.0