-
-
Save jonathanmedd/47fe786108a2ad56194f81d9d8df5f3f to your computer and use it in GitHub Desktop.
Measure-Command-Where2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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