Skip to content

Commit 33ebb31

Browse files
committed
Out-Null vs > $null
1 parent 2ea7ab3 commit 33ebb31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

good-practices/out-null.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Measure-Command { $(1..10000) | Out-Null } | Select-Object -Property TotalMilliseconds
2+
Measure-Command { $(1..10000) > $null } | Select-Object -Property TotalMilliseconds

0 commit comments

Comments
 (0)