<div><div class="gmail_quote">On Wed, May 2, 2012 at 9:38 AM, jerro <span dir="ltr"><<a href="mailto:a@a.com" target="_blank">a@a.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What compiler options is that with?<br>
</blockquote>
<br></div>
I used DMD and compiler flags -O -inline -release on x86_64 linux.<br>
<br>
</blockquote></div><br></div><div>It may be slow relative to incrementing a integer:<div><br></div><div>65 seconds without any command line options.</div><div>54 seconds with  -O -inline -release.</div><div><br></div><div>
vs:</div><div><br></div><div>3.2 seconds dmd without any command line options.</div><div>2.2 seconds with dmd -O -inline -release.<br><br>And that is for <span style>1000_000_000 Fiber context switches.</span><br></div></div>
<div><span style>intel 2600K @ </span><span style>4.5GHz, gnu/linux, ubuntu 12.04</span><span style>.</span></div>