How do you set up number of workers in Playwright for optimal test execution? or What's the best way

18 Replies, 1095 Views

"What's the best way to set up number of workers in Playwright for parallel testing?"

Hey folks! 👋

So, I've been tinkering with Playwright and trying to figure out how to *set up number of workers in playwright* for max speed without nuking my machine.

From what I’ve seen, just slapping `--workers=4` (or whatever) in the CLI *kinda* works, but is there a smarter way? Like, should I match it to CPU cores? Or is there a sweet spot?

Also, does it even matter if my tests are I/O-bound vs CPU-bound?

Kinda confused rn, ngl. Would love to hear how y'all *set up number of workers in playwright* for your setups.

Thx in advance! 🚀

*(PS: pls no "it depends" answers... gimme some real-world numbers!)*

Messages In This Thread
How do you set up number of workers in Playwright for optimal test execution? or What's the best way - by - 05-01-2025, 02:35 AM



Users browsing this thread: 1 Guest(s)