<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 14 February 2016 at 10:06, Serguei TARASSOV <span dir="ltr"><<a href="mailto:serge@arbinada.com" target="_blank">serge@arbinada.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
thank all for assistance!<br>
<br>
Sorry, I was not clear, the series should be ran with all tests _on the same computer_ regardless its hardware capacity and on the _same OS_. That's why I cannot compare with Delphi.<br>
<br>
So if you have modern Delphi, FPC and maybe .NET on your Windows computer please compare them with about 5-10 runs to get average time.<br>
<br>
Thank you for the Inc() hint, I added it to the comments, it gains about 10% for me.<br>
However, in Delphi Inc() is faster until you turn on the checking overflow.<br>
<br>
Another strange effect in FPC.<br>
Only longint shows correct result. With the integer type the optimizer seems to replace type with shortint (16-bits) and I see 31902 instead of 4816030.<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div><br></div><div>Is there a reason for this, or is it a bug? <br></div><br clear="all"></div><br>-- <br><div class="gmail_signature">Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a></div>
</div></div>