Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created May 3, 2017 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmedd/47fe786108a2ad56194f81d9d8df5f3f to your computer and use it in GitHub Desktop.
Save jonathanmedd/47fe786108a2ad56194f81d9d8df5f3f to your computer and use it in GitHub Desktop.
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