The Computer Language
23.03 Benchmarks Game

Chapel versus Python 3 fastest performance

Always look at the source code.

If the fastest programs are hand-written vector instructions, does the host language matter? You might be more interested in the less optimised programs — more seconds, less gz source code.

fannkuch-redux
source secs mem gz cpu secs
Chapel #2 8.09 10,932 731 32.18
Python 3 #6 913.87 11,080 385 913.83
Python 3 #4 285.20 14,264 950 1,123.47
n-body
source secs mem gz cpu secs
Chapel #3 5.60 10,940 960 5.61
Chapel #2 6.10 10,940 971 6.11
Python 3 383.12 11,096 1196 383.11
Python 3 #2 402.59 11,096 1242 402.57
spectral-norm
source secs mem gz cpu secs
Chapel #2 0.73 10,948 335 2.89
Chapel 1.45 10,948 310 5.75
Python 3 #8 78.36 15,704 407 311.22
Python 3 #6 315.69 11,200 328 315.68
Python 3 #7 89.17 15,516 417 352.71
mandelbrot
source secs mem gz cpu secs
Chapel #3 1.90 37,372 591 7.55
Chapel 6.61 37,436 460 26.38
Python 3 #7 155.28 14,244 688 616.01
Python 3 #2   Timed Out  
Python 3 #5   Failed  
pidigits
source secs mem gz cpu secs
Chapel #2 0.75 10,940 423 0.76
Chapel #4 0.75 10,940 509 0.76
Python 3 #3 1.25 13,564 567 1.25
Python 3 #5 1.39 11,428 363 1.39
Python 3 #4 4.21 11,096 342 4.21
regex-redux
source secs mem gz cpu secs
Python 3 #2 1.38 168,144 1403 2.65
Chapel #3 3.63 551,844 492 4.57
Chapel #2 4.50 551,924 489 5.43
Python 3 8.02 460,684 512 14.90
fasta
source secs mem gz cpu secs
Chapel #6 0.79 10,880 1104 0.80
Chapel #5 0.94 10,880 1391 3.47
Chapel #3 4.12 10,880 1229 4.13
Python 3 #2 49.99 11,088 1121 49.99
Python 3 #3 50.28 11,088 1003 50.27
Python 3 58.84 11,092 817 58.84
Python 3 #5 33.40 827,232 1947 61.49
k-nucleotide
source secs mem gz cpu secs
Chapel #4 5.66 192,092 1031 20.12
Chapel #3 6.50 198,044 1007 23.41
Python 3 #3 44.13 262,348 1967 165.01
Python 3 58.56 379,464 607 211.98
Python 3 #8 69.21 505,836 655 214.24
reverse-complement
source secs mem gz cpu secs
Chapel #8 0.91 1,056,436 1298 2.70
Chapel #3 1.57 1,884,484 764 2.93
Chapel #5 1.69 1,884,480 610 2.99
Python 3 #3 4.96 508,412 796 4.95
Python 3 #5 3.72 1,500,212 954 6.76
Python 3 8.53 1,986,544 479 8.53
Python 3 #2 8.58 1,788,056 434 8.58
Python 3 #6 6.17 2,484,084 814 9.23
Python 3 #4 12.04 4,002,656 335 12.04
binary-trees
source secs mem gz cpu secs
Chapel #3 8.09 300,444 488 24.60
Python 3 #2 104.73 271,980 338 104.72
Python 3 #5 35.33 274,884 660 125.79
Python 3 #4 34.53 276,752 472 125.93
Python 3 35.93 276,952 589 126.44
Python 3 #3 50.99 672,016 1238 142.94
Chapel

chpl version 1.29.0
built with LLVM version 14.0.0
Copyright 2020-2022
Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.

Python 3

Python 3.11.1