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 high and low priority flags to lepton utility for more reliable benchmarking #66

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

mcroomp
Copy link
Collaborator

@mcroomp mcroomp commented Apr 18, 2024

The later gen Intel CPUs can run threads on p-cores or e-cores, which have very different performance characteristics. Windows uses the thread priority to decide which core to run on, so if we set a high priority it will run on the p-core and if we set a low priority it will run on the e-core.

This allows us to run perf benchmarks with less variance on CPU time to make it easier to estimate performance differences.

@Melirius
Copy link
Collaborator

LGTM.

@mcroomp mcroomp merged commit 5ac1daf into main Apr 19, 2024
3 checks passed
@mcroomp mcroomp deleted the addthreadpriority branch April 19, 2024 04:10
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

Successfully merging this pull request may close these issues.

3 participants