You’ll also see all instances of “yes” drop from the process list in Activity Monitor. When finished, in the same terminal window type “killall yes” into the command line to kill all instances of the yes command. You’ll quickly discover in Activity Monitor or top that the processor is getting hit hard. Yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & Either repeat the process by hitting up arrow and return to run another several instances, or throw a group onto a single line like so: That sends one instance of ‘yes’ into the background, but to load up the CPU you’ll want to have more than one running. When ready to stress test the Mac, type the following command: To begin, launch Terminal, and you may want to watch the UI-based task manager Activity Monitor so you can easily observe the CPU load and system resources.
#Cpu stress test in browser full#
This means if you have a dual core Mac with a hyperthreaded processor, you’ll need to have at least four different instances of “yes” running to put full load onto the CPU. Generally speaking, each instances of “yes” will max out a single thread on a single CPU core. To max out the Mac CPU we’ll use the command line tool called “yes”, which basically does nothing except repeat the word “yes” at such speed that it consumes all available processor resources.