÷

 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
 n-body1/1451/6±
 spectral-norm1/1211/7±
 recursive1/1141/9
 fannkuch1/1121/6
 binary-trees1/791/4
 nsieve-bits1/491/3
 mandelbrot1/411/80
 fasta1/351/5
 k-nucleotide1/9±
 reverse-complement1/61/4
 nsieve1/41/8±
 partial-sums1/21/31±
 pidigits±1/4
 regex-dna1/2

± 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
 n-body 
C GNU gcc13.863961186  
Python CPython2,015.782,4401027  
 spectral-norm 
C GNU gcc26.85428382  
Python CPython3,261.322,900282  
 recursive 
C GNU gcc0.20340547  
Python CPython22.373,048360  
 fannkuch 
C GNU gcc0.05392628  
Python CPython5.382,404411  
 binary-trees 
C GNU gcc0.853,900758  
Python CPython66.9616,172377  
 nsieve-bits 
C GNU gcc0.721,568441  
Python CPython34.974,936288  
 mandelbrot 
C GNU gcc0.14372563  
Python CPython5.5929,632312  
 fasta 
C GNU gcc19.844881268  
Python CPython692.042,420779  
 k-nucleotide 
C GNU gcc6.5735,3721175  
Python CPython58.4525,208475  
 reverse-complement 
C GNU gcc0.4912,852736  
Python CPython2.7349,072288  
 nsieve 
C GNU gcc2.075,320321  
Python CPython7.3542,400278  
 partial-sums 
C GNU gcc3.19404479  
Python CPython7.0312,680482  
 pidigits 
C GNU gcc0.06488680  
Python CPython0.082,164257  
 regex-dna 
C GNU gcc6.0913,3601099  
Python CPython2.8823,000314  
 chameneos-redux 
C GNU gccFailed
Python CPython2.732,580866  

 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.1.2 (Gentoo 4.1.2)

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