summaryrefslogtreecommitdiffhomepage
path: root/scripts/benchmark.sh
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-03-13 11:50:30 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-13 11:51:50 -0700
commitb8fda7f34f7e9629629bb0cdf7f7e72c7efdace9 (patch)
tree34ffdc45958728150a5e97ff4e885ecc73a62e4c /scripts/benchmark.sh
parent2e38408f20a084de716962d4631e0fec1fd16c16 (diff)
Run "startup" benchmark in Kokoro benchmark job.
PiperOrigin-RevId: 300798423
Diffstat (limited to 'scripts/benchmark.sh')
-rw-r--r--scripts/benchmark.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh
index 79ff198d5..032899386 100644
--- a/scripts/benchmark.sh
+++ b/scripts/benchmark.sh
@@ -14,13 +14,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Run in the root of the repo.
-cd "$(dirname "$0")"
+source $(dirname $0)/common.sh
+# Exporting for subprocesses as GCP APIs and tools check this environmental
+# variable for authentication.
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/${GCLOUD_CREDENTIALS}"
-gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}"
+gcloud auth activate-service-account \
+ --key-file "${GOOGLE_APPLICATION_CREDENTIALS}"
-gcloud compute instances list
-
-bq show gvisor-benchmarks:test.test
+bazel run //benchmarks:benchmarks -- \
+ --verbose \
+ run-gcp \
+ startup \
+ --runtime=runc \
+ --runtime=runsc \
+ --installers=head