Skip to content

Commit a223df9

Browse files
authored
Ensure server warmup before benchmark (#91)
* Ensure server warmup before benchmark * wait 5 sec
1 parent e19a790 commit a223df9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

benchmarks/benchmark_serving.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ def main(args: argparse.Namespace):
590590
)
591591
print("Warm up done")
592592

593+
# TODO: Replace this with warmup complete signal once supported.
594+
# Wait for server completely warmup before running the benchmark.
595+
time.sleep(5)
596+
593597
benchmark_result, request_outputs = asyncio.run(
594598
benchmark(
595599
api_url=api_url,

0 commit comments

Comments
 (0)