Skip to content

Commit

Permalink
fix glob benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Nov 5, 2023
1 parent 7185259 commit 3bb9ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/glob-benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function benchmark() {
await new fdir().glob("**/*.js").crawl(".").withPromise();
}),
b.add("glob async", async () => {
await glob("**/*.js", { dot: true });
await glob("**/*.js", { dot: true, withFileTypes: true });
}),
b.add("fast-glob async", async () => {
await fg("**/*.js", { dot: true, onlyFiles: true });
Expand All @@ -33,7 +33,7 @@ async function benchmark() {
new fdir().glob("**.js").crawl(".").sync();
}),
b.add("glob sync", () => {
globSync("**/**.js", { dot: true });
globSync("**/**.js", { dot: true, withFileTypes: true });
}),
b.add("fast-glob sync", () => {
fg.sync("**.js", { dot: true });
Expand Down

0 comments on commit 3bb9ad0

Please sign in to comment.