Just type this in terminal and hit enter. Control-C or Quit terminal to stop it.
yes > /dev/null
go to Activity Monitor and there should be a process called "yes" and on mine it uses 100% cpu and I can do 4 of these terminal commands in different windows to get all my cores at 100%. Works pretty good.