Skip to content

Add response size and timing metrics to network stats#31

Merged
christoph-jerolimov merged 1 commit into
mainfrom
add-response-size-timing-metrics
Jul 12, 2026
Merged

Add response size and timing metrics to network stats#31
christoph-jerolimov merged 1 commit into
mainfrom
add-response-size-timing-metrics

Conversation

@christoph-jerolimov

Copy link
Copy Markdown
Member

Summary

  • Collect per-response body size and timing data during load tests via Playwright's request.sizes() and request.timing() APIs
  • Add responseSizeSumKb, responseSizeMaxKb, responseTimeSumSec, and responseTimeAvgSec to the stats object
  • Aggregate network stats (sum/avg) across all runs in the analyse script
  • Make logStatsAndErrors async to support awaiting size and timing data

Test plan

  • Run a load test locally and verify the new metrics appear in the Stats output
  • Run analyse.mts against a JSON report and confirm the Network Stats table renders correctly

🤖 Generated with Claude Code

Collect per-response body size and timing data during load tests and
aggregate the results (sum/avg) in the analyse script. The
logStatsAndErrors helper is now async since it awaits request sizes and
timing from Playwright.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@christoph-jerolimov christoph-jerolimov merged commit 3ffecde into main Jul 12, 2026
7 checks passed
@christoph-jerolimov christoph-jerolimov deleted the add-response-size-timing-metrics branch July 12, 2026 22:56
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.

1 participant