-
Notifications
You must be signed in to change notification settings - Fork 309
Add --output-iter-metrics flag to cpu userbenchmark scripts #2600
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 --output-iter-metrics flag to cpu userbenchmark scripts #2600
Conversation
Hi @murste01! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
f091f71
to
88314e6
Compare
CCing @FindHao as I've seen you review similar PRs. |
88314e6
to
2cc4f79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the commands to run with and w/o this config and corresponding output?
userbenchmark/cpu/run_config.py
Outdated
@@ -143,6 +149,9 @@ def run(args: List[str], extra_args: List[str]): | |||
parser.add_argument( | |||
"--metrics", default="latencies", help="Benchmark metrics, split by comma." | |||
) | |||
parser.add_argument( | |||
"--output-iter-metrics", action=argparse.BooleanOptionalAction, help="Enable per-iteration benchmark metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default=False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Adds a new `--output-iter-metrics` flag which adds per-iteration metrics to benchmark result JSON files.
2cc4f79
to
84056bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for your contribution!
Nit:
can you add the commands to run with and w/o this config and corresponding output in this PR's description? One example is good enough. like the Test plan in this PR #2507
@FindHao has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Of course. See below: Without Example command:
Output tree:
With Example command:
Output Tree:
|
Adds a new
--output-iter-metrics
flag which adds per-iteration metrics to benchmark result JSON files. This allows us to do our own statistical analysis and comparison of latency/throughput.