Skip to content

Commit

Permalink
Update benchmarks/benchmark_serving.py
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Wang <[email protected]>
Signed-off-by: Mozhou <[email protected]>
  • Loading branch information
spliii and ywang96 committed Nov 7, 2024
1 parent 07d90dd commit 0a1c320
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ 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}."
theta = 1.0 / (request_rate * burstiness)

for request in input_requests:
Expand Down

0 comments on commit 0a1c320

Please sign in to comment.