Last active
September 5, 2015 08:33
-
-
Save bklockwood/fa950b74c5b97d0adc3e to your computer and use it in GitHub Desktop.
Powershell CPU exerciser
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
$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
from http://waynes-world-it.blogspot.com/2009/05/generating-100-cpu-with-calc-or.html