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
chameneos-redux  No GNU gcc
spectral-norm±2±
regex-dna±±±
fasta±2±
mandelbrot±22
n-body±2±
partial-sums±2±
nsieve-bits±±±
pidigits±2±
nsieve±±±
recursive±2±
reverse-complement±±±
k-nucleotide±1/4±
sum-file±3±
fannkuch±2±
binary-trees52±

± look at the measurements

 C++ GNU g++ comparison measurements

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

 about C++ GNU g++

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

gcc version 4.1.2 (Gentoo 4.1.2)

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

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

Revised BSD license