Skip to content

Instantly share code, notes, and snippets.

@bklockwood
Last active September 5, 2015 08:33
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 bklockwood/fa950b74c5b97d0adc3e to your computer and use it in GitHub Desktop.
Save bklockwood/fa950b74c5b97d0adc3e to your computer and use it in GitHub Desktop.
Powershell CPU exerciser
$i=1; while ($i -lt 200) {write-warning "iteration $i completed in $(Measure-Command {$result = 1; foreach ($number in 5000..1000000) {$result = $result * $number}})"; $i++}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment