CompileTime performance measurement
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 3 17:08:14 PDT 2016
On Sunday, 4 September 2016 at 00:04:16 UTC, Stefan Koch wrote:
> Based on that experience I have now implemented another pseudo
> function called __ctfeTicksMs.
> […]
> Please tell me what you think.
Please don't. This makes CTFE indeterministic.
To write performance tests, just measure compilation of a whole
program (possibly with -o-). The variance due to the
startup/shutdown overhead can trivially be controlled by just
executing the CTFE code in question often enough.
— David
More information about the Digitalmars-d
mailing list