Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Jan 2, 2024
1 parent 8980fb8 commit 8864af4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apps/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,14 @@ async def run(self):
min_latency = min(self.latencies)
max_latency = max(self.latencies)
avg_latency = sum(self.latencies) / len(self.latencies)
logging.info(color(
'@@@ Latencies: '
f'min={min_latency:.2f}, '
f'max={max_latency:.2f}, '
f'average={avg_latency:.2f}'))
logging.info(
color(
'@@@ Latencies: '
f'min={min_latency:.2f}, '
f'max={max_latency:.2f}, '
f'average={avg_latency:.2f}'
)
)

self.min_stats.append(min_latency)
self.max_stats.append(max_latency)
Expand Down

0 comments on commit 8864af4

Please sign in to comment.