Skip to content

Commit eb3c7f9

Browse files
Merge pull request #20 from lightpanda-io/update-bench
Update bench
2 parents 35b2796 + dbee938 commit eb3c7f9

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

README.md

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ $ google-chrome --version
7272
Google Chrome 130.0.6723.58
7373
```
7474

75-
And Lightpanda commit [1e64513c16acce6c4d58a1b3c32b0e2d3c8201d2](https://github.com/lightpanda-io/browser/commit/1e64513c16acce6c4d58a1b3c32b0e2d3c8201d2).
75+
And Lightpanda commit [b846541ff69082f4d283155f0b3651ae0394a240](https://github.com/lightpanda-io/browser/commit/b846541ff69082f4d283155f0b3651ae0394a240).
7676

7777
### Execution time
7878

7979
```console
8080
$ hyperfine --warmup 3 --runs 20 --shell=none "google-chrome --user-data-dir=/tmp/bench_chrome --headless=new --dump-dom http://127.0.0.1:124/campfire-commerce/" "./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/"
8181
Benchmark 1: google-chrome --user-data-dir=/tmp/bench_chrome --headless=new --dump-dom http://127.0.0.1:124/campfire-commerce/
82-
Time (mean ± σ): 618.9 ms ± 12.8 ms [User: 363.0 ms, System: 162.0 ms]
83-
Range (min … max): 598.2 ms … 659.2 ms 20 runs
82+
Time (mean ± σ): 598.7 ms ± 8.6 ms [User: 348.0 ms, System: 165.1 ms]
83+
Range (min … max): 586.3 ms … 611.9 ms 20 runs
8484

8585
Benchmark 2: ./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/
86-
Time (mean ± σ): 9.9 ms ± 0.3 ms [User: 5.8 ms, System: 3.7 ms]
87-
Range (min … max): 9.3 ms … 10.4 ms 20 runs
86+
Time (mean ± σ): 19.6 ms ± 0.1 ms [User: 6.7 ms, System: 4.1 ms]
87+
Range (min … max): 19.4 ms … 19.9 ms 20 runs
8888

8989
Summary
9090
'./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/' ran
91-
62.58 ± 2.32 times faster than 'google-chrome --user-data-dir=/tmp/bench_chrome --headless=new --dump-dom http://127.0.0.1:124/campfire-commerce/'
91+
30.50 ± 0.49 times faster than 'google-chrome --user-data-dir=/tmp/bench_chrome --headless=new --dump-dom http://127.0.0.1:124/campfire-commerce/'
9292
```
9393

9494
![aws.m5 hyperfine](./img/aws_m5_hyperfine.png)
@@ -237,14 +237,9 @@ max run duration (ms) 451
237237

238238
**Lightpanda browser**
239239

240-
We use Lightpanda commit [8d2d089803ae080fbd9cf4c329470badace99b93](https://github.com/lightpanda-io/browser/commit/8d2d089803ae080fbd9cf4c329470badace99b93).
240+
We use Lightpanda commit [b846541ff69082f4d283155f0b3651ae0394a240](https://github.com/lightpanda-io/browser/commit/b846541ff69082f4d283155f0b3651ae0394a240).
241241

242-
You have to start the Lightpanda Gateway.
243-
```console
244-
./gateway
245-
```
246-
247-
And Lightpanda browser itself.
242+
You have to start Lightpanda browser.
248243
```console
249244
/usr/bin/time -v ./lightpanda
250245
```
@@ -256,33 +251,34 @@ $ npm run bench-puppeteer-cdp
256251
> [email protected] bench-puppeteer-cdp
257252
> node puppeteer/cdp.js
258253

254+
.
259255
................................................................................
260-
....................
256+
...................
261257
total runs 100
262-
total duration (ms) 3686
263-
avg run duration (ms) 35
264-
min run duration (ms) 26
265-
max run duration (ms) 109
258+
total duration (ms) 2277
259+
avg run duration (ms) 22
260+
min run duration (ms) 18
261+
max run duration (ms) 40
266262
```
267263

268264
![aws.m5 Puppeteer with Lightpanda browser](./img/aws_m5_puppeteer_lightpanda.png)
269265

270266
```console
271267
Command being timed: "./lightpanda"
272-
User time (seconds): 6.75
273-
System time (seconds): 2.32
274-
Percent of CPU this job got: 98%
275-
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.20
268+
User time (seconds): 1.05
269+
System time (seconds): 0.55
270+
Percent of CPU this job got: 17%
271+
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.25
276272
Average shared text size (kbytes): 0
277273
Average unshared data size (kbytes): 0
278274
Average stack size (kbytes): 0
279275
Average total size (kbytes): 0
280-
Maximum resident set size (kbytes): 23692
276+
Maximum resident set size (kbytes): 23456
281277
Average resident set size (kbytes): 0
282278
Major (requiring I/O) page faults: 0
283-
Minor (reclaiming a frame) page faults: 63559
284-
Voluntary context switches: 196
285-
Involuntary context switches: 2812
279+
Minor (reclaiming a frame) page faults: 62976
280+
Voluntary context switches: 8189
281+
Involuntary context switches: 2804
286282
Swaps: 0
287283
File system inputs: 0
288284
File system outputs: 0

img/aws_m5_hyperfine.png

-1.28 KB
Loading
1.14 KB
Loading

0 commit comments

Comments
 (0)