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

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

Compare to:

 C++ GNU g++ comparison summary


1/2 1/3 1/4 … C++ GNU g++ is better
Programs Time Memory Use Source Size Reduced N
k-nucleotideMake Error
reverse-complement±22
regex-dna±±±
pidigits±2±
spectral-norm±2±
mandelbrot±±±
n-body±2±
fasta±2±
chameneos-redux521/2
fannkuch621/2
binary-trees8±1/2

± look at the measurements

 C++ GNU g++ comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 reverse-complement 
C++ GNU g++ #21.81245,09210981.13  15% 31% 21% 88%
C GNU gcc #41.37125,1927221.37  100% 1% 1% 1%
 regex-dna 
C++ GNU g++ #328.80116,612159928.80  31% 0% 0% 70%
C GNU gcc #232.17124,696109932.17  0% 0% 100% 0%
 pidigits 
C++ GNU g++ #32.711,5966822.72  0% 9% 7% 100%
C GNU gcc #42.711,0125412.71  0% 100% 0% 0%
 spectral-norm 
C++ GNU g++ #712.011,03211143.01  100% 100% 100% 100%
C GNU gcc #412.0068811393.00  100% 100% 100% 100%
 mandelbrot 
C++ GNU g++ #524.7028,8008586.18  100% 100% 100% 100%
C GNU gcc #624.3827,2488796.11  100% 100% 100% 100%
 n-body 
C++ GNU g++ #423.84788142823.84  1% 0% 100% 0%
C GNU gcc #523.52416142923.52  100% 0% 0% 0%
 fasta 
C++ GNU g++ #46.0774412666.07  0% 100% 0% 0%
C GNU gcc #45.1839612215.19  100% 0% 0% 0%
 chameneos-redux 
C++ GNU g++ #412.101,16018003.46  83% 76% 99% 100%
C GNU gcc #52.8458028790.72  100% 97% 99% 100%
 fannkuch 
C++ GNU g++ #271.421,09255471.41  100% 0% 0% 0%
C GNU gcc #250.5455293712.88  98% 100% 98% 98%
 binary-trees 
C++ GNU g++ #240.8099,39655340.79  0% 0% 0% 100%
C GNU gcc #713.71100,6888505.10  50% 34% 85% 81%

 about C++ GNU g++

C++ 1991-2006, Bjarne Stroustrup (pdf)

gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)

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

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

Revised BSD license