You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://www.npmjs.com/package/playwright-performance-metrics"><imgalt="playwright-performance-metrics available on NPM"src="https://img.shields.io/npm/dy/playwright-performance-metrics"></a>
6
+
<ahref="http://makeapullrequest.com"><imgsrc="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"alt="PRs are welcome" /></a>
<ahref="https://GitHub.com/Valiantsin2021/playwright-performance-metrics/graphs/commit-activity"><imgsrc="https://img.shields.io/badge/Maintained%3F-yes-green.svg"alt="playwright-performance-metrics is maintained" /></a>
<ahref="https://github.com/Valiantsin2021/playwright-performance-metrics/actions/workflows/ci.yml"><imgsrc="https://github.com/Valiantsin2021/playwright-performance-metrics/actions/workflows/ci.yml/badge.svg?branch=main"alt="playwright-performance-metrics ci tests" /></a>
14
+
</p>
15
+
16
+
---
2
17
3
18
A comprehensive performance metrics collector for Playwright tests. Collect and analyze web vital metrics, network timing, and resource usage in your Playwright tests.
4
19
@@ -11,6 +26,89 @@ A comprehensive performance metrics collector for Playwright tests. Collect and
11
26
- TypeScript support
12
27
- Easy integration with Playwright tests
13
28
29
+
## Concept
30
+
31
+
The playwright-performance-metrics plugin introduces a powerful way to measure and assert on web performance metrics directly in your Playwright tests. Unlike traditional end-to-end testing that focuses on functionality, this plugin enables teams to catch performance regressions early and maintain high performance standards through automated testing.
32
+
33
+
This plugin does not have external dependencies.
34
+
35
+
**Comparison with playwright-lighthouse**
36
+
37
+
Both plugins focus on performance testing, but they serve different purposes:
38
+
39
+
**playwright-performance-metrics**
40
+
41
+
-**Real-time metrics** during test execution
42
+
-**Lower overhead** - no need for separate Lighthouse runs
43
+
-**Less configuration** - minimal setup required for basic usage
44
+
-**Specific metric focus** - [Core Web Vitals](https://www.hostinger.com/tutorials/core--web-vitals) and key timings
45
+
-**Test integration** - natural fit in existing test flows
46
+
-**Retry capability** - built-in retriability mechanisms to ensure the metrics are collected
0 commit comments