÷

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


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

 C CINT used what fraction? used how many times more? 
Benchmark Time Memory Code
 partial-sums10×1/2
 nsieve21×±
 reverse-complement41×±±
 mandelbrot137×1/3
 spectral-norm157×±
 nsieve-bits192×±
 binary-trees1,885×±
 k-nucleotide2,374×±
 fasta4,433×±
 n-body4,563×±
 recursive6,002×128×±

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 partial-sums 
C CINT32.063,836401  
C++ GNU g++3.21952709  
 nsieve 
C CINT26.998,840324  
C++ GNU g++1.291,468379  
 reverse-complement 
C CINT22.3416,136728  
C++ GNU g++0.5413,288810  
 mandelbrot 
C CINT19.743,724400  
C++ GNU g++0.148961097  
 spectral-norm 
C CINT3,748.354,900407  
C++ GNU g++23.84900442  
 nsieve-bits 
C CINT119.924,472493  
C++ GNU g++0.621,440494  
 binary-trees 
C CINT497.7010,132698  
C++ GNU g++0.262,192814  
 k-nucleotide 
C CINT1,775.9314,5321226  
C++ GNU g++0.754,9081380  
 fasta 
C CINT868.944,0041183  
C++ GNU g++0.207881248  
 n-body 
C CINT711.883,8721173  
C++ GNU g++0.169321705  
 recursive 
C CINT984.26112,936403  
C++ GNU g++0.16884566  
 chameneos-redux 
No program
C++ GNU g++0.219361729  
 regex-dna 
C CINTFailed
C++ GNU g++1.142,9601588  
 pidigits 
No program
C++ GNU g++0.571,032652  
 fannkuch 
C CINTTimed Out
C++ GNU g++0.61844554  

 Step 4 : Are there other C CINT programs for these benchmarks?

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

Maybe one of those other C CINT 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 CINT and C++ GNU g++ 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 CINT : seamless c c++ interpreter compiler 

Although we only show the result of using CINT as a C interpreter, a CINT script can call compiled C++/C classes/functions and compiled code can make callbacks to CINT user defined functions.

5.16.19, March 16, 2007 by M.Goto

Home Page: The CINT C/C++ interpreter

Revised BSD license

  Home   Flawed   Fastest   License   Help