Skip to content

Commit 6c9296c

Browse files
authored
test: use a live endpoint for performance benchmarks (#62)
* feat: live perf tests * fix: add logging to ensure running * fix: blacken * fix: remove debug content * fix: remove unused import
1 parent 1b9b6bc commit 6c9296c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto

tests/perf/benchwrapper.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33
import time
44
import grpc
5-
import os
65
from concurrent import futures
76
import storage_pb2_grpc
87
import storage_pb2
@@ -12,10 +11,10 @@
1211

1312
parser = argparse.ArgumentParser()
1413

15-
if os.environ.get("STORAGE_EMULATOR_HOST") is None:
16-
sys.exit(
17-
"This benchmarking server only works when connected to an emulator. Please set STORAGE_EMULATOR_HOST."
18-
)
14+
# if os.environ.get("STORAGE_EMULATOR_HOST") is None:
15+
# sys.exit(
16+
# "This benchmarking server only works when connected to an emulator. Please set STORAGE_EMULATOR_HOST."
17+
# )
1918

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

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

27-
client = storage.Client.create_anonymous_client()
26+
# client = storage.Client.create_anonymous_client()
27+
client = storage.Client()
2828

2929

3030
class StorageBenchWrapperServicer(storage_pb2_grpc.StorageBenchWrapperServicer):

0 commit comments

Comments
 (0)