Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
Signed-off-by: Mozhou <[email protected]>
  • Loading branch information
spliii committed Nov 7, 2024
1 parent 0a1c320 commit b70a66d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ async def get_request(
input_requests = iter(input_requests)

# Calculate scale parameter theta to maintain the desired request_rate.
assert burstiness > 0, f"A positive burstiness factor is expected, but given {burstiness}."
assert burstiness > 0, (
f"A positive burstiness factor is expected, but given {burstiness}.")
theta = 1.0 / (request_rate * burstiness)

for request in input_requests:
Expand Down

0 comments on commit b70a66d

Please sign in to comment.