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
k-nucleotide  No GNU g++
binary-trees1/8±2
fannkuch1/61/22
chameneos-redux1/51/22
fasta±1/2±
n-body±1/2±
mandelbrot±±±
spectral-norm±1/2±
pidigits±1/2±
regex-dna±±±
reverse-complement±1/21/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 #713.71100,6888505.10  50% 34% 85% 81%
C++ GNU g++ #240.8099,39655340.79  0% 0% 0% 100%
 fannkuch 
C GNU gcc #250.5455293712.88  98% 100% 98% 98%
C++ GNU g++ #271.421,09255471.41  100% 0% 0% 0%
 chameneos-redux 
C GNU gcc #52.8458028790.72  100% 97% 99% 100%
C++ GNU g++ #412.101,16018003.46  83% 76% 99% 100%
 fasta 
C GNU gcc #45.1839612215.19  100% 0% 0% 0%
C++ GNU g++ #46.0774412666.07  0% 100% 0% 0%
 n-body 
C GNU gcc #523.52416142923.52  100% 0% 0% 0%
C++ GNU g++ #423.84788142823.84  1% 0% 100% 0%
 mandelbrot 
C GNU gcc #624.3827,2488796.11  100% 100% 100% 100%
C++ GNU g++ #524.7028,8008586.18  100% 100% 100% 100%
 spectral-norm 
C GNU gcc #412.0068811393.00  100% 100% 100% 100%
C++ GNU g++ #712.011,03211143.01  100% 100% 100% 100%
 pidigits 
C GNU gcc #42.711,0125412.71  0% 100% 0% 0%
C++ GNU g++ #32.711,5966822.72  0% 9% 7% 100%
 regex-dna 
C GNU gcc #232.17124,696109932.17  0% 0% 100% 0%
C++ GNU g++ #328.80116,612159928.80  31% 0% 0% 70%
 reverse-complement 
C GNU gcc #41.37125,1927221.37  100% 1% 1% 1%
C++ GNU g++ #21.81245,09210981.13  15% 31% 21% 88%

 about C GNU gcc

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