next.js / bench /recursive-delete /recursive-delete.js
AbdulElahGwaith's picture
Upload folder using huggingface_hub
b91e262 verified
import { recursiveDeleteSyncWithAsyncRetries } from 'next/dist/lib/recursive-delete.js'
const targetDir = process.argv[2]
async function test() {
const time = process.hrtime()
await recursiveDeleteSyncWithAsyncRetries(targetDir)
const hrtime = process.hrtime(time)
const nanoseconds = hrtime[0] * 1e9 + hrtime[1]
const milliseconds = nanoseconds / 1e6
console.log(milliseconds)
}
test()