Compare the performance of C GNU gcc programs against some other language implementation.

For more information about the C implementation we measured see ↓ about C GNU gcc.

Compare to:

 C GNU gcc comparison summary


1/2 1/3 1/4 … C GNU gcc is better
Programs Time Memory Use Source Size Reduced N
chameneos-reduxFailed
binary-trees1/51/2±
fannkuch±1/2±
sum-file±1/3±
k-nucleotide±4±
reverse-complement±±±
recursive±1/2±
nsieve±±±
pidigits±1/2±
nsieve-bits±±±
partial-sums±1/2±
n-body±1/2±
mandelbrot±1/21/2
fasta±1/2±
regex-dna±±±
spectral-norm±1/2±

± look at the measurements

 C GNU gcc comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 binary-trees 
C GNU gcc #30.853,900758  
C++ GNU g++ #24.476,996541  
 fannkuch 
C GNU gcc5.87392628  
C++ GNU g++ #27.78844554  
 sum-file 
C GNU gcc #45.26320205  
C++ GNU g++ #26.47852260  
 k-nucleotide 
C GNU gcc6.5735,3721175  
C++ GNU g++ #37.469,3041380  
 reverse-complement 
C GNU gcc #40.4912,852736  
C++ GNU g++ #30.5413,288810  
 recursive 
C GNU gcc2.36432547  
C++ GNU g++ #22.401,008566  
 nsieve 
C GNU gcc2.075,320321  
C++ GNU g++ #32.085,764313  
 pidigits 
C GNU gcc1.66592680  
C++ GNU g++ #21.661,052652  
 nsieve-bits 
C GNU gcc #23.862,888434  
C++ GNU g++3.863,316494  
 partial-sums 
C GNU gcc #44.06352718  
C++ GNU g++ #34.05852531  
 n-body 
C GNU gcc14.843961173  
C++ GNU g++ #214.629321705  
 mandelbrot 
C GNU gcc #43.09372563  
C++ GNU g++ #43.028961097  
 fasta 
C GNU gcc #319.844881268  
C++ GNU g++ #418.727881248  
 regex-dna 
C GNU gcc #26.0913,3601099  
C++ GNU g++ #35.5812,7041588  
 spectral-norm 
C GNU gcc26.85428382  
C++ GNU g++23.84900442  

 about C GNU gcc

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