Comment by Robdel12

4 days ago

All of the approaches of driving the browser outside of the browser is going to be slow (webdriver, playwright, puppeteer, etc).

Karma like approaches are where I’m at (execute in the browser)

> All of the approaches of driving the browser outside of the browser is going to be slow

Why? I would think any cross-process communication through the CDP websocket would have imperceptible overhead compared to what already takes long in the browser: a ton of HTTP I/O

What is Karma? What are you executing in the browser?

CDP rountrip time on a local machine is 100µs (0.1ms), it's not slow haha

  • "Thousands of cdp calls" from the link.

    Cdp does add a good chunk of latency. Depends on what your threshold is.

    An image grab is around 60ms and a snapshot can range from 40ms -> 500ms

    The latency is pure data movement. It's like the difference of using ram vs ssd vs data from the internet.

    • yeah but good luck getting rid of that with a browser extension, you're just moving the latency around / moving it to chrome.runtime message passing.