/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
bench/recursive-delete/recursive-delete.js
15 строк
403 B
Benjamin Woodruff
test: Fix and update recursive-delete benchmarks (#84875)
21 окт 2025, 03:52
Не верифицирован
21 окт 2025, 03:52
b3959cd
Код
Авторство
О чём код?
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()