We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d29bfa commit ad390b4Copy full SHA for ad390b4
packages/artillery/lib/platform/local/index.js
@@ -30,7 +30,10 @@ class PlatformLocal {
30
await this.init();
31
32
if (this.platformOpts.mode === 'distribute') {
33
- const count = Math.max(1, os.cpus().length - 1);
+ // Disable worker threads for Playwright-based load tests
34
+ const count = this.script.config.engines?.playwright
35
+ ? 1
36
+ : Math.max(1, os.cpus().length - 1);
37
this.workerScripts = divideWork(this.script, count);
38
this.count = this.workerScripts.length;
39
} else {
0 commit comments