1) Open the Applications folder (it's in Macintosh HD on your desktop)
2) Open the Utilities folder in there
3) Run the Terminal program
4) Type what was said above, which is:
yes > /dev/null
5) Open a new terminal window by pressing Command-N, or select File -> New Shell from the menus. Then type that command again in the new window:
yes > /dev/null
And press ENTER after each of those commands. This will max out your CPU. Do whatever tests you want after this. Once you're done maxing it out, just quit the terminal program with Terminal -> Quit.