44
55get_latest_tag () {
66 curl --silent " https://api.github.com/repos/$1 /tags" | # Get latest release from GitHub api
7- grep ' "name":' | # Get tag line
7+ grep ' "name":' | # Get tag line
88 sed -E ' s/.*"([^"]+)".*/\1/' | grep ' v' | head -1
99}
1010
11- tag=` get_latest_tag " datafuselabs/datafuse" `
11+ tag=$( get_latest_tag " datafuselabs/datafuse" )
1212
13-
14- BASE_DIR=` pwd`
13+ BASE_DIR=$( pwd)
1514echo " Starting standalone FuseQuery(release)"
1615${BASE_DIR} /scripts/deploy/fusequery-standalone.sh release
1716
18- SCRIPT_PATH=" $( cd " $( dirname " $0 " ) " > /dev/null 2>&1 && pwd ) "
17+ SCRIPT_PATH=" $( cd " $( dirname " $0 " ) " > /dev/null 2>&1 && pwd) "
1918cd " $SCRIPT_PATH /../../tests/perfs" || exit
2019
2120echo " Starting fuse perfs"
@@ -29,13 +28,12 @@ python3 -m pip install coscmd PyYAML
2928# # run perf for current
3029python perfs.py --output " ${d_pull} " --bin " ${BASE_DIR} /target/release/fuse-benchmark" --host 127.0.0.1 --port 9001
3130
32-
3331# # run perf for latest release
34- if [ ! -d " ${d_release} " ]; then
35- mkdir -p " ${d_release} "
36- ${BASE_DIR} /scripts/deploy/fusequery-standalone-from-release.sh " ${tag} "
37- python perfs.py --output " ${d_release} " --bin " ${BASE_DIR} /target/release/fuse-benchmark" --host 127.0.0.1 --port 9001
32+ if [ ! -d " ${d_release} " ]; then
33+ mkdir -p " ${d_release} "
34+ ${BASE_DIR} /scripts/deploy/fusequery-standalone-from-release.sh " ${tag} "
35+ python perfs.py --output " ${d_release} " --bin " ${BASE_DIR} /target/release/fuse-benchmark" --host 127.0.0.1 --port 9001
3836fi
3937
4038# # run comparation scripts
41- python compare.py -r " ${d_release} " -p " ${d_pull} "
39+ python compare.py -r " ${d_release} " -p " ${d_pull} "
0 commit comments