benchmarksgame-team.pages.debian.net Open in urlscan Pro
2607:f8f0:614:1::1274:45  Public Scan

URL: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/gpp-python3.html
Submission: On January 26 via manual from PH — Scanned from CA

Form analysis 0 forms found in the DOM

Text Content

THE COMPUTER LANGUAGE
22.01 BENCHMARKS GAME


C++ G++ VERSUS PYTHON 3 FASTEST PROGRAMS

 * vs C
 * vs Java
 * vs Rust

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 be more interested in less optimised programs. Look for them in the
"mandelbrot" or "spectral-norm" or other performance tables. Choose which of
those programs you want to compare.

n-body source secs mem gz busy cpu load C++ g++ 2.17 992 1927 2.23 1% 0% 100% 1%
Python 3 541.34 7,780 1196 544.06 0% 100% 0% 0% mandelbrot source secs mem gz
busy cpu load C++ g++ 0.84 34,800 3542 3.28 98% 99% 98% 98% Python 3 177.35
47,780 688 703.41 99% 99% 99% 99% spectral-norm source secs mem gz busy cpu load
C++ g++ 0.72 1,296 1044 2.86 99% 100% 100% 99% Python 3 112.97 48,792 407 450.01
100% 100% 100% 100% fannkuch-redux source secs mem gz busy cpu load C++ g++ 3.26
1,992 1528 12.94 98% 100% 100% 100% Python 3 341.45 45,548 950 1,347.78
100% 99% 96% 99% fasta source secs mem gz busy cpu load C++ g++ 0.77 2,676 2751
1.59 99% 38% 66% 4% Python 3 36.90 836,484 1947 68.94 43% 10% 74% 60%
binary-trees source secs mem gz busy cpu load C++ g++ 0.94 176,440 890 3.33
85% 87% 83% 100% Python 3 44.70 273,136 660 161.37 83% 90% 91% 97% k-nucleotide
source secs mem gz busy cpu load C++ g++ 1.96 156,492 1631 5.97 69% 98% 68% 69%
Python 3 46.31 246,576 1967 175.36 94% 95% 96% 94% reverse-complement source
secs mem gz busy cpu load C++ g++ 0.64 499,692 2093 0.64 0% 0% 0% 100% Python 3
6.62 1,005,400 814 10.00 3% 48% 72% 28% pidigits source secs mem gz busy cpu
load C++ g++ 0.59 5,024 986 2.36 98% 100% 100% 100% Python 3 1.16 11,700 567
1.19 1% 100% 1% 1% regex-redux source secs mem gz busy cpu load C++ g++ 1.11
203,844 1315 3.43 76% 63% 100% 71% Python 3 1.34 111,492 1403 2.62
36% 41% 32% 87% C++ g++

g++ (Ubuntu 11.2.0-7ubuntu2) 11.2.0

Python 3

Python 3.10.1

 * all C++ g++ programs & measurements
 * all Python 3 programs & measurements

 * How programs are measured