aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/readdir.mjs
blob: 7146decb8fa94be32911c4ea6a80240fa75ca4d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { readdirSync } from "fs";
import { bench, run } from "./runner.mjs";
import { argv } from "process";

const dir = argv.length > 2 ? argv[2] : "/tmp";

const count = readdirSync(dir).length;
bench(`readdir("${dir}")`, () => {
  readdirSync(dir, { withFileTypes: true });
});

await run();
console.log("\n\nFor", count, "files/dirs in", dir);
ects-ssg-object Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/src/serverless (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-03-28[ci] formatGravatar TK 1-2/+2
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 5-3/+69
2024-03-28[ci] formatGravatar Houston (Bot) 2-3/+3
2024-03-28[ci] release (#10597)Gravatar Houston (Bot) 37-66/+89
2024-03-28db: Rework index config with generated index names (#10589)Gravatar Ben Holmes 6-68/+344