2013-07-11

Consume CPU / create CPU load

As usual I found myself in need of something and after searching for a solution I stumbled upon something really interesting that I thought might be worth sharing or at least keep there for myself to read next time I'm in need of it.

This time around I wanted to see what happened to an application when it was under super heavy load (100% CPU).

Turns out the easiest solution to achieve that was to run a console command that comes with windows (at least I think it does? It exists on my machine at least; win7, but it might have arrived in some SDK that I have downloaded).

The program is called consume.exe and can be found in c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0a\Bin\x64 (the last part might vary it seems).

What this does is that it gives you the ability to hog system resources for x amount of seconds.

If that doesn't give you what you needed you might find more information in regards to hogging resources on this StackExchange-url.