diff --git a/README.md b/README.md index 74b52a4..a56d44a 100644 --- a/README.md +++ b/README.md @@ -72,23 +72,23 @@ $ google-chrome --version Google Chrome 130.0.6723.58 ``` -And Lightpanda commit [1e64513c16acce6c4d58a1b3c32b0e2d3c8201d2](https://github.com/lightpanda-io/browser/commit/1e64513c16acce6c4d58a1b3c32b0e2d3c8201d2). +And Lightpanda commit [b846541ff69082f4d283155f0b3651ae0394a240](https://github.com/lightpanda-io/browser/commit/b846541ff69082f4d283155f0b3651ae0394a240). ### Execution time ```console $ 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/" Benchmark 1: google-chrome --user-data-dir=/tmp/bench_chrome --headless=new --dump-dom http://127.0.0.1:124/campfire-commerce/ - Time (mean ± σ): 618.9 ms ± 12.8 ms [User: 363.0 ms, System: 162.0 ms] - Range (min … max): 598.2 ms … 659.2 ms 20 runs + Time (mean ± σ): 598.7 ms ± 8.6 ms [User: 348.0 ms, System: 165.1 ms] + Range (min … max): 586.3 ms … 611.9 ms 20 runs Benchmark 2: ./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/ - Time (mean ± σ): 9.9 ms ± 0.3 ms [User: 5.8 ms, System: 3.7 ms] - Range (min … max): 9.3 ms … 10.4 ms 20 runs + Time (mean ± σ): 19.6 ms ± 0.1 ms [User: 6.7 ms, System: 4.1 ms] + Range (min … max): 19.4 ms … 19.9 ms 20 runs Summary './lightpanda --dump http://127.0.0.1:1234/campfire-commerce/' ran - 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/' + 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/' ``` ![aws.m5 hyperfine](./img/aws_m5_hyperfine.png) @@ -237,14 +237,9 @@ max run duration (ms) 451 **Lightpanda browser** -We use Lightpanda commit [8d2d089803ae080fbd9cf4c329470badace99b93](https://github.com/lightpanda-io/browser/commit/8d2d089803ae080fbd9cf4c329470badace99b93). +We use Lightpanda commit [b846541ff69082f4d283155f0b3651ae0394a240](https://github.com/lightpanda-io/browser/commit/b846541ff69082f4d283155f0b3651ae0394a240). -You have to start the Lightpanda Gateway. -```console -./gateway -``` - -And Lightpanda browser itself. +You have to start Lightpanda browser. ```console /usr/bin/time -v ./lightpanda ``` @@ -256,33 +251,34 @@ $ npm run bench-puppeteer-cdp > demo@1.0.0 bench-puppeteer-cdp > node puppeteer/cdp.js +. ................................................................................ -.................... +................... total runs 100 -total duration (ms) 3686 -avg run duration (ms) 35 -min run duration (ms) 26 -max run duration (ms) 109 +total duration (ms) 2277 +avg run duration (ms) 22 +min run duration (ms) 18 +max run duration (ms) 40 ``` ![aws.m5 Puppeteer with Lightpanda browser](./img/aws_m5_puppeteer_lightpanda.png) ```console Command being timed: "./lightpanda" - User time (seconds): 6.75 - System time (seconds): 2.32 - Percent of CPU this job got: 98% - Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.20 + User time (seconds): 1.05 + System time (seconds): 0.55 + Percent of CPU this job got: 17% + Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.25 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 - Maximum resident set size (kbytes): 23692 + Maximum resident set size (kbytes): 23456 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 - Minor (reclaiming a frame) page faults: 63559 - Voluntary context switches: 196 - Involuntary context switches: 2812 + Minor (reclaiming a frame) page faults: 62976 + Voluntary context switches: 8189 + Involuntary context switches: 2804 Swaps: 0 File system inputs: 0 File system outputs: 0 diff --git a/img/aws_m5_hyperfine.png b/img/aws_m5_hyperfine.png index 8eb7b4c..fc883c9 100644 Binary files a/img/aws_m5_hyperfine.png and b/img/aws_m5_hyperfine.png differ diff --git a/img/aws_m5_puppeteer_lightpanda.png b/img/aws_m5_puppeteer_lightpanda.png index cb0f238..d081fbc 100644 Binary files a/img/aws_m5_puppeteer_lightpanda.png and b/img/aws_m5_puppeteer_lightpanda.png differ