Skip to content

Commit 861efe6

Browse files
committed
Shell script builds and runs perfcomp
1 parent 61e591e commit 861efe6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.evergreen/perfcomp/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,13 @@ generates markdown output after compare run (must be run after `compare`)
5353
Usage:
5454
perfcomp mdreport
5555
```
56+
57+
### Run via shell script
58+
59+
Alternatively, you can run the perfcomp shell script. This script will run build and then run `compare`. From the root directory,
60+
61+
```bash
62+
PERF_URI_PRIVATE_ENDPOINT="<perf_uri>" VERSION_ID="<version>" .evergreen/run-perf-comp.sh
63+
```
64+
65+
If you would like to see a markdown preview of the report, you can also pass in `HEAD_SHA=""`. This will generate `.evergreen/perfcomp/perf-report.md`.

.evergreen/run-perf-comp.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,10 @@ fi
6060

6161
: "${PERF_URI_PRIVATE_ENDPOINT:?Error: PERF_URI_PRIVATE_ENDPOINT must be set}"
6262
: "${VERSION_ID:?Error: VERSION_ID must be set}"
63+
64+
./bin/perfcomp compare ${VERSION_ID}
65+
66+
if [[ -n "${HEAD_SHA+set}" ]]; then
67+
./bin/perfcomp mdreport
68+
rm perf-report.txt
69+
fi

0 commit comments

Comments
 (0)