Skip to content

Commit 90ebd5c

Browse files
committed
Bump bbs (performance tests)
1 parent 7dd2113 commit 90ebd5c

File tree

11 files changed

+1826
-1
lines changed

11 files changed

+1826
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#! /bin/bash
2+
3+
set -eu
4+
set -o pipefail
5+
6+
THIS_FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
7+
8+
function run() {
9+
local task_tmp_dir="${1:?provide temp dir for task}"
10+
shift 1
11+
local new_branch="${1:?Please provide the branch that contains the 'new' protobufs}"
12+
local old_branch="${2:-preserve-gogo-protobuf}"
13+
# shellcheck disable=2155
14+
local utc_timestamp="$(date --utc +%Y%m%d_%H%M%S)"
15+
16+
pushd "${THIS_FILE_DIR}/../src/code.cloudfoundry.org/bbs/models/performance" > /dev/null
17+
local old_results_path="${task_tmp_dir}/${old_branch}_${utc_timestamp}.txt"
18+
git checkout "${old_branch}"
19+
git pull
20+
echo " Running performance tests..."
21+
ginkgo --no-color . > "${old_results_path}"
22+
echo " Complete"
23+
24+
local new_results_path="${task_tmp_dir}/${new_branch}_${utc_timestamp}.txt"
25+
git checkout "${new_branch}"
26+
git pull
27+
echo " Running performance tests..."
28+
ginkgo --no-color . > "${new_results_path}"
29+
echo " Complete"
30+
31+
cp "${old_results_path}" "./results/gogo-protobuf.txt"
32+
cp "${new_results_path}" "./results/google-protobuf.txt"
33+
popd > /dev/null
34+
}
35+
36+
function cleanup() {
37+
rm -rf "${task_tmp_dir}"
38+
}
39+
40+
task_tmp_dir="$(mktemp -d -t 'XXXX-linter-tmp-dir')"
41+
trap cleanup EXIT
42+
run $task_tmp_dir "$@"

src/code.cloudfoundry.org/bbs

Submodule bbs updated 189 files

src/code.cloudfoundry.org/vendor/github.com/onsi/gomega/gmeasure/cache.go

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/code.cloudfoundry.org/vendor/github.com/onsi/gomega/gmeasure/enum_support.go

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)