babakfpB
Denoβ€’3y agoβ€’
8 replies
babakfp

Trying to benchmark `Deno.remove` but it fails

deno bench --allow-write bench.ts
Check file:///C:/Users/babak/OneDrive/Desktop/deno-benchmark-345654/bench.ts
cpu: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
runtime: deno 1.36.4 (x86_64-pc-windows-msvc)

file:///C:/Users/babak/OneDrive/Desktop/deno-benchmark-345654/bench.ts
Deno.remove  error: NotFound: The system cannot find the file specified. (os error 2): remove './assets'
    await Deno.remove("./assets", { recursive: true })
    ^
    at async Object.remove (ext:deno_fs/30_fs.js:201:3)
    at async file:///C:/Users/babak/OneDrive/Desktop/deno-benchmark-345654/bench.ts:2:5  
error: Bench failed
Was this page helpful?