Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warm up iterations #40

Open
malkusch opened this issue May 9, 2015 · 3 comments
Open

Add warm up iterations #40

malkusch opened this issue May 9, 2015 · 3 comments

Comments

@malkusch
Copy link

malkusch commented May 9, 2015

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.

@bishopb
Copy link

bishopb commented May 28, 2015

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.

@bishopb
Copy link

bishopb commented May 28, 2015

Regardless, PHP 7 has an experimental JIT, so a general purpose warm-up specification might work out just fine. Something like:

/**
 * @iterations 1000, 10
 */

@polyfractal
Copy link
Owner

++, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants