@@ -201,14 +201,14 @@ def build_report_header(old_file, sha_file: str) -> str:
201201def main ():
202202 parser = argparse .ArgumentParser (description = "Compare go test -bench results in markdown format" )
203203 parser .add_argument (
204- "--alert-threshold" , type = float , default = 5 ,
204+ "--alert-threshold" , type = float , default = 7 ,
205205 help = "Percent change threshold for adding emoji alerts"
206206 )
207207 parser .add_argument (
208208 "--aggregation" , choices = ["mean" , "median" ], default = "mean" ,
209209 help = "Aggregation method for multiple runs of the same benchmark"
210210 )
211- parser .add_argument ("--sha-file " , help = "Path to file with sha commit of the old benchmark" )
211+ parser .add_argument ("--old-commit- sha-path " , help = "Path to file with sha commit of the old benchmark" )
212212 parser .add_argument ("old_file" , help = "Path to old benchmark results file" , nargs = '?' , default = "" )
213213 parser .add_argument ("new_file" , help = "Path to new benchmark results file" )
214214 args = parser .parse_args ()
@@ -219,7 +219,7 @@ def main():
219219
220220 new_metrics = aggregate_results (parse_metrics_file (args .new_file ), args .aggregation )
221221
222- print (build_report_header (args .old_file , args .sha_file ))
222+ print (build_report_header (args .old_file , args .old_commit_sha_path ))
223223 print (compare_benchmarks_df (old_metrics , new_metrics , alert_threshold = args .alert_threshold ))
224224
225225
0 commit comments