-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starlark: Benchmarks --iterations <count> command line flag
Option to run a fixed number of iterations to use benchmarks with an external comparison tool. This is a follow-up to [this comment](#12498 (comment)). `Benchmarks --iterations 10000` will run 10000 iterations of a given benchmark (or of the benchmarks if filter is not specified). For example: ``` $ absh \ -a "java -jar $HOME/Benchmarks_deploy-a.jar --filter bench_sort_small --iterations 10000000" \ -b "java -jar $HOME/Benchmarks_deploy-b.jar --filter bench_sort_small --iterations 10000000" ... A: N=53 r=3.992+-0.425 se=0.058 B: N=53 r=3.919+-0.384 se=0.053 B/A: 0.982 ``` Note that currently `Benchmarks` parses all benchmark files (creating unnecessary overhead), this will be fixed when new `--filter <file>:<benchmark>` syntax is introduced. Closes #12511. PiperOrigin-RevId: 346108443
- Loading branch information
1 parent
1782f0a
commit 92a9e2f
Showing
1 changed file
with
83 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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