Skip to content

Commit 25d5ee2

Browse files
committed
docs
1 parent 5939a50 commit 25d5ee2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/replay/metrics/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Evaluates Replay impact on website performance by running a web app in Chromium via Playwright and collecting various metrics.
44

5+
The general idea is to run a web app without Sentry Replay and then run the same app again with Replay included.
6+
For both scenarios, we collect some metrics (CPU, memory, vitals) and later compare them and post as a comment in a PR.
7+
Changes in the collected, compared to previous runs from the main branch, should be evaluated on case-by-case basis when preparing and reviewing the PR.
8+
59
## Resources
610

711
* https://github.com/addyosmani/puppeteer-webperf

packages/replay/metrics/configs/ci/collect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function checkStdDev(stats: MetricsStats, name: string, provider: NumberProvider
2121
const collector = new MetricsCollector({ headless: true, cpuThrottling: 2 });
2222
const result = await collector.execute({
2323
name: 'jank',
24-
a: new JankTestScenario(false),
25-
b: new JankTestScenario(true),
24+
a: new JankTestScenario(false), // No sentry
25+
b: new JankTestScenario(true), // Sentry + Replay
2626
runs: 10,
2727
tries: 10,
2828
async shouldAccept(results: Metrics[]): Promise<boolean> {

0 commit comments

Comments
 (0)