Skip to content

Commit

Permalink
[Bench] Flush cache before benchmarking (#2566)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying1123 authored Dec 24, 2024
1 parent e835a50 commit 8a56b43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sglang/bench_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ async def limited_request_func(request_func_input, pbar):
f"are correctly specified. Error: {test_output.error}"
)
else:
requests.post(base_url + "/flush_cache")
print("Initial test run completed. Starting main benchmark run...")

time.sleep(1.5)
Expand Down

0 comments on commit 8a56b43

Please sign in to comment.