
4 Sep
2008
4 Sep
'08
7:11 p.m.
Michael Marcin wrote:
I ran your attached test on VC9 SP1 default console app release mode with _SECURE_SCL=0 on my Core 2 Quad Q6600 2.4Ghz with 4GB of RAM
50.702 seconds 19.984 seconds 48.453 seconds 13.343 seconds 4.313 seconds 2.953 seconds Press any key to continue . . .
Are these all truly doing the same work?
I looked at the generated code to see why the timing were so drastically different and I realized the compiler wasn't inlining a lot of trivial functions. I ran it again after I flipped inline function expansion from default to Any Suitable 9.297 seconds 5.812 seconds 8.75 seconds 4.688 seconds 2.922 seconds 3.016 seconds Press any key to continue . . . Thanks, Michael Marcin