mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
11 lines
321 B
JavaScript
11 lines
321 B
JavaScript
import { realpathSync } from "node:fs";
|
|
import { bench, run } from "../runner.mjs";
|
|
const count = parseInt(process.env.ITERATIONS || "1", 10) || 1;
|
|
const arg = process.argv[process.argv.length - 1];
|
|
|
|
bench("realpathSync x " + count, () => {
|
|
for (let i = 0; i < count; i++) realpathSync(arg, "utf-8");
|
|
});
|
|
|
|
await run();
|