Tensor's blog

By Tensor, 10 years ago, In English

while solving a certain problem in c++, I tried to see the execution time on my pc.

Running the program on the terminal and mingwG++ gives time 0.14, while running it through visual studio it gives me 3.874!!!!!

please can anyone explain me this phenomenon, why there is such a great difference between both executions ?!

thanks in advance.

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Source code? specific compile switches used? It's very likely you're using a debug build in visual studio which populates code with run-time checks and uses debug version of STL as well. "Release" compile would be faster.