I visited this site that benchs various compilers.
http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=partialsums&lang=all
However they don't show results for VS. But they do share the source to code.
Here are results from couple runs averaged for this particular (partialsums) test, not directly comparable to results from that site though! Performed on Core 2 Duo 2.77,512,4 under Vista 64. I took the code from the site and added perf counter code (below)
around it.
all results from running inside same unelevated cmd prompt. (not from ide)
VC++ 2008 sp1 beta 32 bit native, default settings from win32 command line project (release b)
~1.00 sec
cl.exe
~0.93 s (weird thing, the build inside VS is slower)
with /clr inside VC++
~0.77 s
Intel C++ 10.1.021 , 32 bit compiler:
~0.52 s
Intel C++ 10.1.021 , 64 bit compiler:
~0.57 s
the variance for different runs was below 0.01 s
__int64 ctr1 = 0, ctr2 = 0, freq = 0;
int acc = 0, i = 0;
if (QueryPerformanceCounter((LARGE_INTEGER *)&ctr1)!= 0)
{
... c++ intel #3 code from the site ... http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=partialsums&lang=icpp&id=3
QueryPerformanceCounter((LARGE_INTEGER *)&ctr2);
QueryPerformanceFrequency((LARGE_INTEGER *)&freq);
std::cout << "\n" << ((ctr2 - ctr1) * 1.0 / freq) << " time";
}