Skip to content

Commit

Permalink
test: use a live endpoint for performance benchmarks (#62)
Browse files Browse the repository at this point in the history
* feat: live perf tests

* fix: add logging to ensure running

* fix: blacken

* fix: remove debug content

* fix: remove unused import
  • Loading branch information
crwilcox committed Feb 15, 2020
1 parent 1b9b6bc commit 6c9296c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .kokoro/continuous/storage_perf_bench.cfg
@@ -0,0 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
12 changes: 6 additions & 6 deletions tests/perf/benchwrapper.py
Expand Up @@ -2,7 +2,6 @@
import sys
import time
import grpc
import os
from concurrent import futures
import storage_pb2_grpc
import storage_pb2
Expand All @@ -12,10 +11,10 @@

parser = argparse.ArgumentParser()

if os.environ.get("STORAGE_EMULATOR_HOST") is None:
sys.exit(
"This benchmarking server only works when connected to an emulator. Please set STORAGE_EMULATOR_HOST."
)
# if os.environ.get("STORAGE_EMULATOR_HOST") is None:
# sys.exit(
# "This benchmarking server only works when connected to an emulator. Please set STORAGE_EMULATOR_HOST."
# )

parser.add_argument("--port", help="The port to run on.")

Expand All @@ -24,7 +23,8 @@
if args.port is None:
sys.exit("Usage: python3 main.py --port 8081")

client = storage.Client.create_anonymous_client()
# client = storage.Client.create_anonymous_client()
client = storage.Client()


class StorageBenchWrapperServicer(storage_pb2_grpc.StorageBenchWrapperServicer):
Expand Down

0 comments on commit 6c9296c

Please sign in to comment.