1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/cli/bench/fs
David Sherret 10e4b2e140
chore: update copyright year to 2023 (#17247)
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
..
.gitignore perf: fs optimizations - part 1 (#15873) 2022-09-22 14:39:25 +05:30
README.md perf: fs optimizations - part 1 (#15873) 2022-09-22 14:39:25 +05:30
run.mjs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
serve.jsx chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00

fs benchmarks

adding new benchmarks

const copyFileSync = getFunction("copyFileSync");
bench(() => copyFileSync("test", "test2"));

// For functions with side-effects, clean up after `bench` like so:
const removeSync = getFunction("removeSync");
removeSync("test2");

running

deno run -A --unstable run.mjs
node run.js

view report

deno run --allow-net=127.0.0.1:9000 serve.jsx
# View rendered report at http://127.0.0.1:9000/