Skip to content

Commit 39ab195

Browse files
committed
keep run-bench.py in main directory
1 parent 616761b commit 39ab195

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

scripts/run-bench.py renamed to run-bench.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import subprocess
44

55
parser = argparse.ArgumentParser()
6-
parser.add_argument('--branchcompare', help='Compare benchmarks of current branch with main. Provide an optional --filter')
6+
parser.add_argument('--branchcompare', action='store_true', help='Compare benchmarks of current branch with main. Provide an optional --filter')
77
parser.add_argument('--benchcompare', action='store_true', help='Compare across benchmarks. Requires --baseline and --contender')
88
parser.add_argument("-f", '--filter', type=str, required=False)
99
parser.add_argument("-b", '--baseline', type=str, required=False)
@@ -17,10 +17,10 @@
1717
if (args.baseline is None or args.contender is None):
1818
parser.error("--benchcompare requires --baseline and --contender")
1919
else:
20-
rc = subprocess.check_call("./bench-compare.sh '%s %s'" % (args.baseline, args.contender), shell=True)
20+
rc = subprocess.check_call("./scripts/bench-compare.sh '%s %s'" % (args.baseline, args.contender), shell=True)
2121

2222
if args.branchcompare:
2323
if args.filter is None:
24-
rc = subprocess.call("./branch-compare.sh")
24+
rc = subprocess.call("./scripts/branch-compare.sh")
2525
else:
26-
rc = subprocess.check_call("./branch-compare.sh '%s'" % args.filter, shell=True)
26+
rc = subprocess.check_call("./scripts/branch-compare.sh '%s'" % args.filter, shell=True)

scripts/bench-compare.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#~/bin/bash
1+
#!/bin/bash
22
set -e
33
branch=$(git rev-parse --abbrev-ref HEAD)
44
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

scripts/branch-compare.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#~/bin/bash
1+
#!/bin/bash
22
set -e
33
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
44
cd $SCRIPT_DIR/..

0 commit comments

Comments
 (0)