On 2016-02-14 09:35, Florian Klaempfl wrote: > I do not know if the points above really effect the example,
It does. [tmp]$ fpc -O2 -Cr- test.pas Free Pascal Compiler version 3.0.0 [2015/11/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others [tmp]$ ./test Found 4816030 tickets. Elapsed time, msec: 184 [tmp]$ ls -l test -rwxr-xr-x 1 graemeg wheel 908471 14 Feb 10:06 test [tmp]$ fpc -O3 -Cr- test.pas Free Pascal Compiler version 3.0.0 [2015/11/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others [tmp]$ ./test Found 4816030 tickets. Elapsed time, msec: 178 [tmp]$ ls -l test -rwxr-xr-x 1 graemeg wheel 908471 14 Feb 10:07 test [tmp]$ fpc -O4 -Cr- test.pas Free Pascal Compiler version 3.0.0 [2015/11/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others [tmp]$ ./test Found 4816030 tickets. Elapsed time, msec: 178 [tmp]$ ls -l test -rwxr-xr-x 1 graemeg wheel 908471 14 Feb 10:08 test [tmp]$ fpc -O4 -Ooloopunroll -Cr- test.pas Free Pascal Compiler version 3.0.0 [2015/11/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others [tmp]$ ./test Found 4816030 tickets. Elapsed time, msec: 151 [tmp]$ ls -l test -rwxr-xr-x 1 graemeg wheel 908471 14 Feb 10:08 test The "-O4 -Ooloopunroll" options produced the fastest executable out of the above tests. But then, I think such non-realword tests don't prove much. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal