[fpc-devel] Good timing metric test program?

Sven Barth pascaldragon at googlemail.com
Mon Feb 25 19:41:34 CET 2019


J. Gareth Moreton <gareth at moreton-family.com> schrieb am Mo., 25. Feb.
2019, 19:14:

> The compiler isn't a valid case because the input source is different
> (because of the very changes made to said compiler).  It needs to be a
> project that doesn't share anything with the compiler (except the run-time
> libraries), so the source code is exactly the same so that when it is
> built, it runs the same no matter which version of the compiler it was
> built with.
>
> I'm viewing it as a bit of a scientific experiment, where only a single
> variable is changed, namely the compiler used.  The compiled program should
> produce exactly the same output and otherwise behave the same way, so that
> any time metrics reflect only how long it takes to complete and hence is
> reflective only of the quality of the machine code, not what the program is
> doing... if that makes any sense.
>

You could always build an unmodified compiler with your modified one ;)

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190225/d3786590/attachment.html>


More information about the fpc-devel mailing list