@@ -201,14 +201,14 @@ def build_report_header(old_file, sha_file: str) -> str:
201
201
def main ():
202
202
parser = argparse .ArgumentParser (description = "Compare go test -bench results in markdown format" )
203
203
parser .add_argument (
204
- "--alert-threshold" , type = float , default = 5 ,
204
+ "--alert-threshold" , type = float , default = 7 ,
205
205
help = "Percent change threshold for adding emoji alerts"
206
206
)
207
207
parser .add_argument (
208
208
"--aggregation" , choices = ["mean" , "median" ], default = "mean" ,
209
209
help = "Aggregation method for multiple runs of the same benchmark"
210
210
)
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" )
212
212
parser .add_argument ("old_file" , help = "Path to old benchmark results file" , nargs = '?' , default = "" )
213
213
parser .add_argument ("new_file" , help = "Path to new benchmark results file" )
214
214
args = parser .parse_args ()
@@ -219,7 +219,7 @@ def main():
219
219
220
220
new_metrics = aggregate_results (parse_metrics_file (args .new_file ), args .aggregation )
221
221
222
- print (build_report_header (args .old_file , args .sha_file ))
222
+ print (build_report_header (args .old_file , args .old_commit_sha_path ))
223
223
print (compare_benchmarks_df (old_metrics , new_metrics , alert_threshold = args .alert_threshold ))
224
224
225
225
0 commit comments