Skip to content

Commit c1bc532

Browse files
Merge pull request #15 from lightpanda-io/fix-runs
cdp: fix invalid runs count
2 parents c2bb33f + 1f12bb2 commit c1bc532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playwright/cdp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let metrics = [];
3333
console.log("Connection to browser on " + browserAddress);
3434
const browser = await chromium.connectOverCDP(browserAddress);
3535

36-
for (var run = 1; run<=runs; run++) {
36+
for (var run = 0; run<runs; run++) {
3737

3838
// measure run time.
3939
const rstart = process.hrtime.bigint();

puppeteer/cdp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let metrics = [];
3535
browserURL: browserAddress,
3636
});
3737

38-
for (var run = 1; run<=runs; run++) {
38+
for (var run = 0; run<runs; run++) {
3939
// measure run time.
4040
const rstart = process.hrtime.bigint();
4141

0 commit comments

Comments
 (0)