From 3bb9ad010f05dba7bd63d3bb15eb5ee1edc0f428 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Sun, 5 Nov 2023 22:04:02 +0500 Subject: [PATCH] fix glob benchmark --- benchmarks/glob-benchmark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/glob-benchmark.ts b/benchmarks/glob-benchmark.ts index 5c70f11..d26f6bb 100644 --- a/benchmarks/glob-benchmark.ts +++ b/benchmarks/glob-benchmark.ts @@ -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 }); @@ -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 });