Why is .NET faster than C++ in this case?

后端 未结 13 1484
长发绾君心
长发绾君心 2021-02-02 00:59

Make sure you run outside of the IDE. That is key.

-edit- I LOVE SLaks comment. \"The amount of misinformation in these answers is staggering.\" :D

13条回答
  •  面向向阳花
    2021-02-02 01:33

    It could be that the methods are pre-jitted at runtime prior to running the test...or that the Console is a wrapper around the API for outputting to console, when the C++'s code for cout is buffered..I guess..

    Hope this helps, Best regards, Tom.

提交回复
热议问题