From 8a7d2bd05215eaeba8d8b88d6aa89eb97131c5a1 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Tue, 4 Aug 2020 20:30:04 +0500 Subject: [PATCH] fix(bench): fix crawlers benchmark --- benchmarks/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/benchmark.js b/benchmarks/benchmark.js index 155dd46..20a77c5 100644 --- a/benchmarks/benchmark.js +++ b/benchmarks/benchmark.js @@ -35,7 +35,7 @@ async function benchmark() { fdir2.sync("node_modules"); }), b.add("fdir 3.4.2 sync", () => { - fdir3.sync("node_modules"); + new fdir3().crawl("node_modules").sync("node_modules"); }), b.add(`get-all-files sync`, () => { getAllFiles.sync.array("node_modules");