Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Last active March 5, 2022 05:31
Show Gist options
  • Save techthoughts2/5b60eb1549ccac18f1f145a35c5e185e to your computer and use it in GitHub Desktop.
Save techthoughts2/5b60eb1549ccac18f1f145a35c5e185e to your computer and use it in GitHub Desktop.
# wrap Measure-Command in & { } for increased measuring performance
Measure-Command { & {
$var = foreach ($i in 0..50000){
$i
}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment