in reply to CPU Load generator for Windows?
Writing a perl script that will use 100% of 1 cpu is pretty simple:
pretty well does the job.perl -e'while(1) {$x++}'
If you also need to exercise memory and paging, you could have something like:
I haven't tested that last one, but I'll bet it'll be nicely anti-social :)perl -e'$x=" " x 1024 x 1024 x 256; while(1) { $x=~s/ /./g; $x=~s/./ / +g;}'
Are you shooting for something more precise, like 30% cpu load? That would be much harder to fine-tune...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CPU Load generator for Windows?
by Limbic~Region (Chancellor) on Jun 22, 2007 at 15:36 UTC | |
by RMGir (Prior) on Jun 22, 2007 at 18:15 UTC | |
Re^2: CPU Load generator for Windows?
by ww (Archbishop) on Jun 22, 2007 at 17:14 UTC | |
by BrowserUk (Patriarch) on Jun 22, 2007 at 18:08 UTC |