98 / 168 · 01 Agent Skills for Browser Automation · Reporting and Observability← prev⊞ allnext →☰ Read as one page
13.6Performance Tracking
Per-Command Timing
# Wrapper function that times each command
timed_pw() {
local start=$(date +%s%N)
playwright-cli "$@"
local exit_code=$?
local end=$(date +%s%N)
local duration_ms=$(( (end - start) / 1000000 ))
echo "[timing] playwright-cli $@ → ${duration_ms}ms (exit $exit_code)" >> timing.log
return $exit_code
}
Trend Analysis
Track test durations over time to catch performance regressions:
{
"date": "2026-07-09",
"test": "checkout_flow",
"duration_ms": 4500,
"previous_avg_ms": 3200,
"regression": true,
"delta_pct": 40.6
}
Alert when a test consistently takes >50% longer than its rolling average.