silverwolf-x's picture
download
raw
432 Bytes
import { manual, manualSync } from 'rimraf'
const targetDir = process.argv[2]
const method = process.argv[3]
async function test() {
const time = process.hrtime()
if (method === 'sync') {
manualSync(targetDir)
} else {
await manual(targetDir)
}
const hrtime = process.hrtime(time)
const nanoseconds = hrtime[0] * 1e9 + hrtime[1]
const milliseconds = nanoseconds / 1e6
console.log(milliseconds)
}
test()

Xet Storage Details

Size:
432 Bytes
·
Xet hash:
a526a795144494180c9988076eb5c66982da99ded5a63752aea3b868cb63605e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.