Proposal: bomb-workers add upper limit#106
Conversation
✅ Deploy Preview for webkit-jetstream-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
I agree that well-designed sites should probably not spawn this many workers. On the other hand, I expect that real-world websites often do spawn a lot of threads. For example, Keith mentioned in Slack that Photoshop spawns 30+ workers. The more workers we spawn, the more this benchmark is "about" the overhead of worker startup. Given that the actual work being performed in each of these threads is uninteresting, maybe that's not a bad thing. I could go either way on this. |
|
This is the first time I hear about 30+ workers for photoshop. I know that maps heavily limited their page to max ~8 workers since it was just not efficient beyond that point. Beyond that I don't have any data point on how many workers are realistic for a page. |
|
Yeah, it seems that Photoshop is launching more than 40 workers, in both Safari and Chrome. I would like to keep this test as is since we are observing these use cases. |
|
Closing this PR in favour of #125 |

Bomb-workers currently spawns 26 workers in parallel.
This is a highly unrealistic scenario, google maps for instance roughly limits itself to 4 workers (even on high end machines).
This PR proposes an upper limit on number of workers.
This way we still have some focus on Worker startup performance while not heavily over indexing on an unrealistic usecase.
Happy to hear feedback.