What's the best tool to benchmark a linux machine? I'm comparing machines from two different cloud providers. It needs to be a command line tool. Just need to benchmark CPU and I/O performance.
|
feedback
|
|
Benchmarking CPU and I/O in isolation is pointless. Benchmark your exact workload. | |||
|
feedback
|
|
You can measure the disk performance with "hdparm" if you know the name of the device. For the CPU the best bet is to consider a prototype of the program you actually want to run there, as the provider may have CPU throtteling depending on the amount of CPU used. | |||||
feedback
|
|
I second David's suggestion of benchmarking your actual workload. If that's not possible, you could try something like bonnie++ for benchmarking I/O. | |||
|
feedback
|
|
I also find sysbench pretty useful. On my cloud machines, I often run:
Note that there are many, many test options, and two more modes that require a bit more setup (fileio and oltp). I use this to determine the relative speed of various instances I launch with my cloud providers. Not all EC2 instances are created equal ;-) | |||||||||||
feedback
|