<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 21 August 2015 at 10:49, Kagamin via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday, 21 August 2015 at 01:29:12 UTC, H. S. Teoh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you tried using gdc -O3 (or ldc) to see if there's a big<br>
difference?<br>
</blockquote>
<br></span>
How -Os and -march=native change the picture?<br>
</blockquote></div><br></div><div class="gmail_extra">There's a paper somewhere about optimisations on Intel processors that says that -O2 produces overall better results than -O3 (I'll have to dig it out).<br><br></div><div class="gmail_extra">In any case, -Ofast may give you better benchmark results because it permits skipping corners for IEEE and other standards.<br><br></div><div class="gmail_extra">Also, -march=native is cheating, as you'll have the most unportable binary created from it.  ;-)<br></div></div>