Skip to content

Commit

Permalink
Ensure server warmup before benchmark (#91)
Browse files Browse the repository at this point in the history
* Ensure server warmup before benchmark

* wait 5 sec
  • Loading branch information
JoeZijunZhou authored May 28, 2024
1 parent e19a790 commit a223df9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ def main(args: argparse.Namespace):
)
print("Warm up done")

# TODO: Replace this with warmup complete signal once supported.
# Wait for server completely warmup before running the benchmark.
time.sleep(5)

benchmark_result, request_outputs = asyncio.run(
benchmark(
api_url=api_url,
Expand Down

0 comments on commit a223df9

Please sign in to comment.