Skip to content

Commit 09da233

Browse files
committed
update README instruction for playwright bench
1 parent 791a85a commit 09da233

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ The `playwright/cdp.js` benchmark accepts multiple env vars to be configured.
169169
* `BASE_URL` is the base url of the running web reser to request, by default `http://127.0.0.1:1234`.
170170
* `RUNS` is the number of pages loaded by the benchmark, default is `100`.
171171

172-
`npm run bench-cdp` starts a playwright process
172+
`npm run bench-playwright-cdp` starts a playwright process
173173
instance and load the page to extract data 100 times.
174174

175175
```console
176-
$ npm run bench-cdp
176+
$ npm run bench-playwright-cdp
177177
```
178178

179179
### Results
@@ -189,9 +189,9 @@ $ google-chrome --headless=new --disable-gpu --remote-debugging-port=9222
189189

190190
Then you can run the benchmark.
191191
```console
192-
$ npm run bench-cdp
192+
$ npm run bench-playwright-cdp
193193

194-
> [email protected] bench-chrome
194+
> [email protected] bench-playwright-cdp
195195
> node playwright/chrome.js
196196

197197
................................................................................

puppeteer/cdp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const baseURL = process.env.BASE_URL ? process.env.BASE_URL : 'http://127.0.0.1:
2424
// runs
2525
const runs = process.env.RUNS ? parseInt(process.env.RUNS) : 100;
2626

27-
const executablePath = process.env.CHROME_PATH;
27+
const executablePath = process.env.CHROME_PATH ? process.env.CHROME_PATH : '/usr/bin/google-chrome';
2828

2929
// measure general time.
3030
const gstart = process.hrtime.bigint();

0 commit comments

Comments
 (0)