Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Measure-Command-Where2
PS C:\> Measure-Command {1..500000 | Where-Object {$_ % 5}}
Days : 0
Hours : 0
Minutes : 0
Seconds : 6
Milliseconds : 281
Ticks : 62819195
TotalDays : 7.27074016203704E-05
TotalHours : 0.00174497763888889
TotalMinutes : 0.104698658333333
TotalSeconds : 6.2819195
TotalMilliseconds : 6281.9195
Measure-Command {(1..500000).where({$_ % 5})}
Days : 0
Hours : 0
Minutes : 0
Seconds : 2
Milliseconds : 107
Ticks : 21070411
TotalDays : 2.43870497685185E-05
TotalHours : 0.000585289194444444
TotalMinutes : 0.0351173516666667
TotalSeconds : 2.1070411
TotalMilliseconds : 2107.0411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment