/mobile Handheld Friendly website

÷

 Step 1 : Are the C++ GNU g++ 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 g++ program used compared to the fastest C GNU gcc program.


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the C++ GNU g++ 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 g++ program used compared to the fastest C GNU gcc program.

 C++ GNU g++ used what fraction? used how many times more? 
Benchmark Time Memory Code
 k-nucleotide1/4±±
 n-body±±±
 spectral-norm±±±
 reverse-complement±1/2±
 pidigits±±
 fannkuch-redux±±
 mandelbrot±±±
 fasta±±±
 fasta-redux±±
 binary-trees±±
 regex-dna1/4±
 C++ GNU g++ used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/4±±±±±

± read the measurements and then read the program source code.

 Step 3 : Are the C++ GNU g++ 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 g++ program are shown for comparison against measurements of the fastest C GNU gcc program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 k-nucleotide 
C++ GNU g++9.919.93142,0843415  0% 0% 0% 100%
C GNU gcc40.3040.32180,3082280  0% 0% 0% 100%
 n-body 
C++ GNU g++19.3519.353521659  0% 0% 0% 100%
C GNU gcc20.7220.723281429  0% 0% 0% 100%
 spectral-norm 
C++ GNU g++10.0010.006881044  1% 0% 0% 100%
C GNU gcc10.6310.646881139  0% 0% 0% 100%
 reverse-complement 
C++ GNU g++0.880.89224,6722275  4% 1% 1% 98%
C GNU gcc0.900.92480,3321867  0% 1% 0% 99%
 pidigits 
C++ GNU g++2.292.291,580682  0% 0% 0% 100%
C GNU gcc2.292.29896541  0% 0% 0% 100%
 fannkuch-redux 
C++ GNU g++50.3650.371,1641440  0% 0% 0% 100%
C GNU gcc49.5049.523681557  0% 0% 0% 100%
 mandelbrot 
C++ GNU g++24.2924.2932,2281017  0% 0% 0% 100%
C GNU gcc23.4623.4730,232799  0% 0% 0% 100%
 fasta 
C++ GNU g++6.196.203281266  0% 0% 0% 100%
C GNU gcc5.845.853281221  0% 0% 0% 100%
 fasta-redux 
C++ GNU g++2.002.001,0041474  0% 1% 0% 100%
C GNU gcc1.681.683281321  0% 1% 0% 100%
 binary-trees 
C++ GNU g++16.0916.15296,228892  0% 0% 0% 100%
C GNU gcc11.9711.98149,144850  0% 0% 0% 100%
 regex-dna 
C++ GNU g++15.6515.6691,1441759  0% 0% 0% 100%
C GNU gcc5.375.38326,0322579  1% 1% 5% 100%

 Step 4 : Are there other C++ GNU g++ programs for these benchmarks?

Remember - those are just the fastest C++ GNU g++ and C GNU gcc programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for C++ GNU g++.

Maybe one of those other C++ GNU g++ 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 g++ and C GNU gcc 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 g++ : c plus objects plus generics 

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

gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

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

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

Revised BSD license

  Home   Conclusions   License   Help