Skip to content

fix(stresstest): Report true elapsed time and metrics#370

Merged
lcian merged 1 commit intomainfrom
lcian/fix/stresstest-elapsed-time
Mar 12, 2026
Merged

fix(stresstest): Report true elapsed time and metrics#370
lcian merged 1 commit intomainfrom
lcian/fix/stresstest-elapsed-time

Conversation

@lcian
Copy link
Member

@lcian lcian commented Mar 12, 2026

This fixes 2 issues that would happen when the stresstest is firing too many requests and a backlog would build up.
These would report incorrect throughput and bandwidth numbers.
They're most relevant for short tests, as things would smooth out over time in longer ones. They're also relevant for tests where a single operation takes a long time (such as the gaming ones).

  1. Report the actual wall-clock elapsed time for each workload instead of using the configured duration.
  2. Read metrics after all outstanding tasks are finished, not before.

…ation

When a backlog of requests builds up, tasks may finish after the
configured duration expires. Using the hardcoded duration for metrics
reporting produced incorrect ops/s and throughput numbers.

This tracks the real wall-clock time from start until all tasks complete
and uses that for reporting. Also moves the semaphore acquire before
reading metrics to ensure all in-flight tasks are reflected.
@lcian lcian marked this pull request as ready for review March 12, 2026 11:22
@lcian lcian requested a review from a team as a code owner March 12, 2026 11:23
@lcian lcian changed the title fix(stresstest): Report actual elapsed time instead of configured duration fix(stresstest): Report true elapsed time and metrics Mar 12, 2026
@lcian lcian merged commit feccc8f into main Mar 12, 2026
21 checks passed
@lcian lcian deleted the lcian/fix/stresstest-elapsed-time branch March 12, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants