OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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-sums | 10× | 4× | 1/2 | |
| nsieve | 21× | 6× | ± | |
| reverse-complement | 41× | ± | ± | |
| mandelbrot | 137× | 4× | 1/3 | |
| spectral-norm | 157× | 5× | ± | |
| nsieve-bits | 192× | 3× | ± | |
| binary-trees | 1,885× | 5× | ± | |
| k-nucleotide | 2,374× | 3× | ± | |
| fasta | 4,433× | 5× | ± | |
| n-body | 4,563× | 4× | ± | |
| recursive | 6,002× | 128× | ± | |
± read the measurements and then read the program source code.
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 CINT | 32.06 | 3,836 | 401 | ||
| C++ GNU g++ | 3.21 | 952 | 709 | ||
| nsieve | |||||
| C CINT | 26.99 | 8,840 | 324 | ||
| C++ GNU g++ | 1.29 | 1,468 | 379 | ||
| reverse-complement | |||||
| C CINT | 22.34 | 16,136 | 728 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| mandelbrot | |||||
| C CINT | 19.74 | 3,724 | 400 | ||
| C++ GNU g++ | 0.14 | 896 | 1097 | ||
| spectral-norm | |||||
| C CINT | 3,748.35 | 4,900 | 407 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| nsieve-bits | |||||
| C CINT | 119.92 | 4,472 | 493 | ||
| C++ GNU g++ | 0.62 | 1,440 | 494 | ||
| binary-trees | |||||
| C CINT | 497.70 | 10,132 | 698 | ||
| C++ GNU g++ | 0.26 | 2,192 | 814 | ||
| k-nucleotide | |||||
| C CINT | 1,775.93 | 14,532 | 1226 | ||
| C++ GNU g++ | 0.75 | 4,908 | 1380 | ||
| fasta | |||||
| C CINT | 868.94 | 4,004 | 1183 | ||
| C++ GNU g++ | 0.20 | 788 | 1248 | ||
| n-body | |||||
| C CINT | 711.88 | 3,872 | 1173 | ||
| C++ GNU g++ | 0.16 | 932 | 1705 | ||
| recursive | |||||
| C CINT | 984.26 | 112,936 | 403 | ||
| C++ GNU g++ | 0.16 | 884 | 566 | ||
| chameneos-redux | |||||
| C++ GNU g++ | 0.21 | 936 | 1729 | ||
| regex-dna | |||||
| C CINT | |||||
| C++ GNU g++ | 1.14 | 2,960 | 1588 | ||
| pidigits | |||||
| C++ GNU g++ | 0.57 | 1,032 | 652 | ||
| fannkuch | |||||
| C CINT | |||||
| C++ GNU g++ | 0.61 | 844 | 554 | ||
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.
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.
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