Skip to content

Commit

Permalink
Split and rename latency metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Jun 11, 2024
1 parent 76e473c commit a4cbb85
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/commit_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,15 @@ def run(args):
print_fn(f"Mean commit latency / sig_interval = {factor:.2f}")
factors.append(factor)

bf = infra.bencher.Bencher()
bf.set(
"commit_latency_ratio",
infra.bencher.Latency(
statistics.mean(factors), high_value=max(factors), low_value=min(factors)
),
)
for sig_interval in (1, 16, 256):
stats = all_stats[sig_interval]
bf = infra.bencher.Bencher()
bf.set(
f"Commit Latency (sig_ms_interval={sig_interval}ms)",
infra.bencher.Latency(
stats.mean(), high_value=stats.max(), low_value=stats.min()
),
)


if __name__ == "__main__":
Expand Down

0 comments on commit a4cbb85

Please sign in to comment.