3 ms·
My experience has been that Powershell is as fast as cmd for this task. EDIT: As a test, I cloned my local Maven repository a few times. This resulted in 48,61
by jdmichal 9y ago
My experience has been that Powershell is as fast as cmd for this task.
EDIT: As a test, I cloned my local Maven repository a few times. This resulted in 48,613 files, 16,590 folders, and 2.71 GB on disk. Here's the result of:
Measure-Command { rm '.\.m2 - Copy' -Recurse -Force }
TotalDays : 0.00196887874421296
TotalHours : 0.0472530898611111
TotalMinutes : 2.83518539166667
TotalSeconds : 170.1111235
TotalMilliseconds : 170111.1235
~~And it had a CPU pegged the entire time. So no, Powershell is still terrible at this. Stick with cmd.~~
EDIT2: Tried it again, with RMDIR and using the timing script found here:
https://stackoverflow.com/a/6209392 https://stackoverflow.com/a/6209392
timecmd "RMDIR /S /Q .m2c > NUL"
command took 0:2:40.15 (160.15s total)
So within the same magnitude of time.
I might try it one more time after lunch with the DEL followed by RMDIR combo to see if that changes anything.