Add a pca-metrics command#315
Open
fitzgen wants to merge 1 commit into
Open
Conversation
3ab5157 to
6a023ad
Compare
This records various static and dynamic metrics for use in principal component analysis. Static metrics include: * Various entity counts: number of functions, number of instructions, number of data segments, etc... * Static: instruction mix: ratio of integer vs float vs memory load vs etc... instructions There are two categories of dynamic metrics: 1. Dynamic Wasm instruction mix: This is recorded via instrumenting the benchmark with counters for each instruction category and incrementing an instruction's associated counter as the program runs (with an optimization to batch these increments up once per basic block). 2. Callgrind-based metrics: The benchmark is run through callgrind with a fixed cache and branch predictor simulation configuration (so the metrics are independent of the host machine's microarchitecture) and then we report the cache read/write miss ratio, branch prediction miss ratio, number of Wasm instructions executed per native instruction, etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This records various static and dynamic metrics for use in principal component analysis.
Static metrics include:
There are two categories of dynamic metrics:
Dynamic Wasm instruction mix: This is recorded via instrumenting the benchmark with counters for each instruction category and incrementing an instruction's associated counter as the program runs (with an optimization to batch these increments up once per basic block).
Callgrind-based metrics: The benchmark is run through callgrind with a fixed cache and branch predictor simulation configuration (so the metrics are independent of the host machine's microarchitecture) and then we report the cache read/write miss ratio, branch prediction miss ratio, number of Wasm instructions executed per native instruction, etc...