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

2 warmup iterations should be a default, or something #72

Open
dabrahams opened this issue Aug 28, 2020 · 0 comments
Open

2 warmup iterations should be a default, or something #72

dabrahams opened this issue Aug 28, 2020 · 0 comments

Comments

@dabrahams
Copy link
Contributor

Swift builds up lots of metadata and witness table caches at runtime, and when timing things that go quickly, that can be really significant. At least if the iterations are fast enough, you should throw away the first one to get those caches initialized, and maybe throw out another, to get the fast paths into the i-cache. I found adding warmup iterations could drastically change the relative measurement of some benchmarks.

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

1 participant