,

Sysbench - benchmark for Linux

# sysbench [common-options] --test=name [test-options] command
fileio – File I/O test
cpu – CPU performance test
memory – Memory functions speed test
threads – Threads subsystem performance test
mutex – Mutex performance test
oltp – OLTP test

more information : man sysbench or sysbench --test=cpu help
exemples:
1 thread :
~> sysbench --test=cpu --cpu-max-prime=2500 --num-threads=1 run
4 threads :
~> sysbench --test=cpu --cpu-max-prime=2500 --num-threads=4 run



cleaning after your tests :
~> sysbench --test=fileio cleanup