[fpc-pascal] Happy tickets benchmark

Jeppe Johansen jeppe at j-software.dk
Wed Mar 2 01:03:26 CET 2016

On 03/02/2016 12:48 AM, vfclists . wrote:
> On 14 February 2016 at 10:06, Serguei TARASSOV <serge at arbinada.com 
> <mailto:serge at arbinada.com>> wrote:
>     Hello,
>     thank all for assistance!
>     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.
>     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.
>     Thank you for the Inc() hint, I added it to the comments, it gains
>     about 10% for me.
>     However, in Delphi Inc() is faster until you turn on the checking
>     overflow.
>     Another strange effect in FPC.
>     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.
> Is there a reason for this, or is it a bug?
The Integer type depends on what compiler mode you are in, and what 
operating system. Sometimes it's 32bit and other times it's 16bit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160302/5e0ea2d1/attachment.html>

More information about the fpc-pascal mailing list