File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
173173instance 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
190190Then you can run the benchmark.
191191``` console
192- $ npm run bench-cdp
192+ $ npm run bench-playwright- cdp
193193
194- 194+ >
[email protected] bench-playwright-cdp 195195> node playwright/chrome.js
196196
197197................................................................................
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const baseURL = process.env.BASE_URL ? process.env.BASE_URL : 'http://127.0.0.1:
2424// runs
2525const 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.
3030const gstart = process . hrtime . bigint ( ) ;
You can’t perform that action at this time.
0 commit comments