÷

 Step 1 : Are the C GNU gcc programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest C GNU gcc program used compared to the fastest Python CPython program.


 Step 2 : Are the C GNU gcc programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest C GNU gcc program used compared to the fastest Python CPython program.

 C GNU gcc used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch1/2641/5
 fasta1/1181/8
 mandelbrot1/118±
 spectral-norm1/791/34
 n-body1/611/7±
 binary-trees1/511/7±
 pidigits1/201/4±
 reverse-complement1/51/4
 k-nucleotide1/51/3
 regex-dna1/4±

± read the measurements and then read the program source code.

 Step 3 : Are the C GNU gcc programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest C GNU gcc program are shown for comparison against measurements of the fastest Python CPython program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch 
C GNU gcc47.4412.23560937  96% 100% 96% 98%
Python CPython3,232.093,231.902,852387  36% 8% 48% 7%
 fasta 
C GNU gcc1.761.763761321  99% 1% 0% 1%
Python CPython208.55208.542,928779  61% 23% 4% 12%
 mandelbrot 
C GNU gcc24.336.1127,940879  100% 100% 100% 100%
Python CPython2,882.02720.5423,468425  100% 100% 100% 100%
 spectral-norm 
C GNU gcc12.173.076881139  100% 100% 98% 100%
Python CPython942.71242.9423,632428  98% 97% 98% 95%
 n-body 
C GNU gcc23.5323.524121429  0% 100% 0% 0%
Python CPython1,443.101,443.022,9321105  86% 7% 1% 7%
 binary-trees 
C GNU gcc13.555.48100,696850  72% 35% 76% 63%
Python CPython980.23279.06674,024626  86% 89% 85% 90%
 pidigits 
C GNU gcc2.712.721,008541  1% 1% 0% 100%
Python CPython54.7454.743,596407  100% 0% 0% 0%
 reverse-complement 
C GNU gcc1.361.36125,196722  4% 100% 0% 1%
Python CPython6.786.78561,860288  0% 40% 61% 0%
 k-nucleotide 
C GNU gcc54.4617.25161,7562439  89% 56% 83% 88%
Python CPython277.7284.94441,680519  54% 94% 82% 96%
 regex-dna 
C GNU gcc6.323.10282,3642579  50% 40% 55% 60%
Python CPython11.7311.73196,492314  0% 0% 100% 0%
 chameneos-redux 
No program
Python CPython2.361.943,020869  36% 24% 51% 15%

 Step 4 : Are there other C GNU gcc programs for these benchmarks?

Remember - those are just the fastest C GNU gcc and Python CPython programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for C GNU gcc.

Maybe one of those other C GNU gcc programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest C GNU gcc and Python CPython programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 C GNU gcc : unchecked low-level programming 

gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)

Online book: The C Book

Home Page: http://gcc.gnu.org/

Download: ftp://ftp.gnu.org/pub/gnu/gcc/

Revised BSD license

  Home   Flawed   Fastest   License   Help