3 ms·
I feel like I should point out that `Measure-Command {dir C:\}` is just aliasing gci. PS> Measure-Command {Start-Process cmd -ArgumentList '/c dir c:\'}
by jeeva 10y ago
I feel like I should point out that `Measure-Command {dir C:\}` is just aliasing gci.
PS> Measure-Command {Start-Process cmd -ArgumentList '/c dir c:\'}
TotalMilliseconds : 14.0138
PS> Measure-Command {gci C:\}
TotalMilliseconds : 10.7484
Second run on each of those went down to closer to 40% of each, yay caching.
Of course, the start-process is possibly taking up a chunk of time, there. With no measure-command for cmd, it makes it a little harder to gauge.