-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_old_releases.sh
33 lines (27 loc) · 906 Bytes
/
run_old_releases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env sh
# first get the tags from the joblib repository
if [ -z "$JOBLIB_PATH" ] || [ ! -d "$JOBLIB_PATH" ]; then
echo "JOBLIB_PATH is either not set or
pointing to a wrong location, aborting operation."
return
else
pushd $JOBLIB_PATH
echo "listing tags from joblib..."
fi
# we start bechmarking releases when joblib is written in
# python3, e.g approximately v0.8.0
OLDEST_BENCHMARKED_RELEASE="0.8.0"
# this lists the tags which history contains the
# $OLDEST_BENCHMARKED_RELEASE, e.g tags newer than
# $OLDEST_BENCHMARKED_RELEASE
ALL_TAGS=$(git tag --sort=committerdate --contains "$OLDEST_BENCHMARKED_RELEASE")
echo "asv will benchmark the following tags:
$ALL_TAGS"
# we now move to the joblib_benchmarks repository and start
# running the bechmarks
popd
for tag in $ALL_TAGS; do
echo "running asv for tag $tag"
# asv run "$tag"^! -b time_bytes_as_output
asv run "$tag"^!
done