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
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,15 +165,15 @@ Lightpanda browser, but the code is not publicly available yet.
165
165
### Running the benchmark
166
166
167
167
The `playwright/cdp.js` benchmark accepts multiple env vars to be configured.
168
-
*`BROWSER_PATH` is the path to your browser implementing the CDP protocol. It can be either the path to a local binary or an URL (host:port) of a running browser. Default value is empty, which will launch the Google Chrome installed through Playwright.
168
+
*`BROWSER_ADDRESS` is the address of the running browser listening the CDP protocol, by default `http://127.0.0.1:9222`.
169
169
*`BASE_URL` is the base url of the running web reser to request, by default `http://127.0.0.1:1234`.
170
170
*`RUNS` is the number of pages loaded by the benchmark, default is `100`.
171
171
172
172
`npm run bench-cdp` starts a playwright process
173
173
instance and load the page to extract data 100 times.
174
174
175
175
```console
176
-
$ BROWSER_PATH=127.0.0.1:9222 npm run bench-cdp
176
+
$ npm run bench-cdp
177
177
```
178
178
179
179
### Results
@@ -182,6 +182,12 @@ $ BROWSER_PATH=127.0.0.1:9222 npm run bench-cdp
0 commit comments