Skip to content

Commit

Permalink
chore: disable concurrency for benchmarks
Browse files Browse the repository at this point in the history
Other solutions utilize all available cores.
  • Loading branch information
mrmlnc committed May 27, 2023
1 parent 6bfb5f4 commit c8f0a60
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/benchmark/suites/product/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class Glob {
await this._measure(() => glob(this._pattern, {
cwd: this._cwd,
unique: false,
followSymbolicLinks: false
followSymbolicLinks: false,
concurrency: Number.POSITIVE_INFINITY
}));
}

Expand Down
3 changes: 2 additions & 1 deletion src/benchmark/suites/product/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class Glob {
const stream = glob.stream(this._pattern, {
cwd: this._cwd,
unique: false,
followSymbolicLinks: false
followSymbolicLinks: false,
concurrency: Number.POSITIVE_INFINITY
});

const action = new Promise<string[]>((resolve, reject) => {
Expand Down
1 change: 1 addition & 0 deletions src/benchmark/suites/regression/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Glob {
this._options = {
unique: false,
followSymbolicLinks: false,
concurrency: Number.POSITIVE_INFINITY,
...options
};
}
Expand Down
1 change: 1 addition & 0 deletions src/benchmark/suites/regression/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Glob {
this._options = {
unique: false,
followSymbolicLinks: false,
concurrency: Number.POSITIVE_INFINITY,
...options
};
}
Expand Down

0 comments on commit c8f0a60

Please sign in to comment.