a neat trick to generate cpu load:
$result = 1; foreach ($number in 1..2147483647) {$result = $result * $number};
can be extend to:
foreach ($loopnumber in 1..2147483647) {$result=1;foreach ($number in 1..2147483647) {$result = $result * $number};$result}
source: http://waynes-world-it.blogspot.ro/2009/05/generating-100-cpu-with-calc-or.html
No comments:
Post a Comment