Hmmm. Is it the CPU or the IO you want to stress? To stress the CPU, just create a loop that goes through some table a zillion times and updates a value in the table based on a calculation that has to be repeated (e.g. multiply two columns to get the value--but don't update the table with the calculated value). If you use a small table for this test, it'll end up all cached so that your IO will be limited and the stress will all be on the processor. For maximum stress on most CPU's, do floating point math.
A much more common need than would be served by the test described above is to stress the system in a way that would simulate the use of the a DB--which would generally be IO- not CPU-bound.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.