[fpc-pascal] Happy tickets benchmark

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Feb 14 15:33:40 CET 2016


Am 14.02.2016 um 12:56 schrieb Florian Klaempfl:
 > No really. It is not a matter of +1 vs. inc but how it is compiled: as
 > add or lea. And the decision add vs. lea is not straight forward. It
 > depends on the surrounding code and the exact core.

After reading this (especially the comments)
http://stackoverflow.com/questions/1658294/whats-the-purpose-of-the-lea-instruction
the speed also seems to be dependend on the specific processor used 
(even whithin the same family)
which makes such benchmarks somewhat arbitrary (if the compiler does not 
take it into account).




More information about the fpc-pascal mailing list