Simple benchmark for fs.cpSync and fs.promises.cp on a deep tree with symlinks.
npm installPass sync or async as the first argument to select the variant. Defaults to sync when no argument (or an invalid one) is provided.
node --expose-gc index.js # sync (default)
node --expose-gc index.js sync
node --expose-gc index.js asyncbun run index.js # sync (default)
bun run index.js sync
bun run index.js asyncdeno run -A --v8-flags="--expose-gc" index.js # sync (default)
deno run -A --v8-flags="--expose-gc" index.js sync
deno run -A --v8-flags="--expose-gc" index.js async