Too big difference in speed of binaries ,produced with different compilers (C++)
<br />
<p>I have used mainly gcc in my last project and today I decided to benchmark different compilers' results. <br /> I used the same source for gcc 4.5,MSVC from Visual Studio 2010 and Intel C++ .The program gets its input from a text file,makes a lot of string manipulations and writes the output to another text file.
I counted only time of executing the algorithm ,not of file io. It started with a small file(around 200 lines) and there was almost no difference ( around <0.15 sec ).
With a 4K lines file MSVC's output worked for 1.23 sec compared to 0.1 for gcc's output.
<br />
Finally I tested with 60K lines file : <br />
    (program compiled with ) Intel compiler ran for 6.7 sec and with  gcc : 1 sec.

<br />
Now I just wonder why there is such a difference (that was without optimization flags) and what can be the reason about that.(I used c++0x standard - but obviously Intel compiler supports it).I am not sure if the fact that my code compiles to fast binary only with one compiler isn't alarming

 
  
Too big difference in speed of binaries ,produced with different compilers (C++)
===

<br />
<p>I have used mainly gcc in my last project and today I decided to benchmark different compilers' results. <br /> I used the same source for gcc 4.5,MSVC from Visual Studio 2010 and Intel C++ .The program gets its input from a text file,makes a lot of string manipulations and writes the output to another text file.
I counted only time of executing the algorithm ,not of file io. It started with a small file(around 200 lines) and there was almost no difference ( around <0.15 sec ).
With a 4K lines file MSVC's output worked for 1.23 sec compared to 0.1 for gcc's output.
<br />
Finally I tested with 60K lines file : <br />
    (program compiled with ) Intel compiler ran for 6.7 sec and with  gcc : 1 sec.

<br />
Now I just wonder why there is such a difference (that was without optimization flags) and what can be the reason about that.(I used c++0x standard - but obviously Intel compiler supports it).I am not sure if the fact that my code compiles to fast binary only with one compiler isn't alarming

 
  