summaryrefslogtreecommitdiffhomepage
path: root/scripts/benchmark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/benchmark.sh')
-rw-r--r--scripts/benchmark.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh
index 79ff198d5..06d44f914 100644
--- a/scripts/benchmark.sh
+++ b/scripts/benchmark.sh
@@ -14,13 +14,22 @@
# 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
+gcloud config set project ${PROJECT}
+gcloud config set compute/zone ${ZONE}
-bq show gvisor-benchmarks:test.test
+bazel run //benchmarks:benchmarks -- \
+ --verbose \
+ run-gcp \
+ startup \
+ --runtime=runc \
+ --runtime=runsc \
+ --installers=head