Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kokoro/continuous/storage_perf_bench.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
12 changes: 6 additions & 6 deletions tests/perf/benchwrapper.py
Original file line number Diff line number Diff line change
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