athletic
athletic copied to clipboard
Add warm up iterations
I'm not sure if this is really necessary in vanilla PHP, at least it won't hurt. HHVM uses a JIT and would benefit from a warm up phase.
Does instructing the HHVM JIT to perform an immediate warm-up help?
hhvm -v Eval.Jit=1 -v Eval.JitProfileInterpRequests=0 ./vendor/bin/athletic -p ./tests/
Note: If using HHVM < 3.4, change Eval.JitProfileInterpRequests
to Eval.JitWarmupRequests
.
Regardless, PHP 7 has an experimental JIT, so a general purpose warm-up specification might work out just fine. Something like:
/**
* @iterations 1000, 10
*/
++, someone want to send a PR? I'm pretty hands-off on this library nowadays
Even if vanilla PHP doesn't JIT anything, it'd help prime CPU caches, OS page cache, etc.