Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Aug 11, 2024
1 parent a2dc250 commit bd08baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def bench_diff(main, target, threshold=0.05):
def main():
argparser = argparse.ArgumentParser(description='Tools to test the performance. Example: ./bench.py "go test -bench=. ./..."')
argparser.add_argument('cmd', type=str, help='Golang benchmark command')
argparser.add_argument('-nr', type=bool, dest='norestore', default=False, help='not restore branch')
argparser.add_argument('-nr', dest='norestore', action='store_true', help='not restore branch')
argparser.add_argument('-t', type=float, dest='threshold', default=0.1, help='diff bench threshold')
argparser.add_argument('-c', '--compare', dest='compare', action='store_true',
help='Compare the current branch with the main branch')
Expand Down

0 comments on commit bd08baf

Please sign in to comment.