google / google/cpu_features

Frequency scaling can hurt, even in same family

Open
#10 8 comments 1 reaction 1 assignee Claimed by @gchatelet View on GitHub
enhancement
Dominant language
C++
Stars
2.6k
Forks
309
Avg merge
6d 58m
Merged PRs (30d)
2

Description

This looks like a fantastically useful library.

Just a point for consideration, given that one of the targets is to make it easier to write fast code:
https://blog.cloudflare.com/on-the-dangers-of-intels-frequency-scaling/

Note that same generation, same feature set can have wildly different performance depending on if it's "Silver", "Gold" or "Platinum", none of which is exposed by flags. Silver, for example, is de-tuned for AVX-512 (as someone puts it in the comments there).

You can parse that out of /proc/cpuinfo, if you're solely looking at Linux use cases, but this seems like something that would be ideal to find out via this library.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.