Download sysbench
git clone https://github.com/akopytov/sysbench.git
Compiling the installation
./autogen.sh./configure #./configure--without-mysql (do not compile the function module to test MySQL) make && make install
The following commands are copied from high-performance MySQL
Test the CPU, calculate the run time of the prime number
Sysbench--TEST=CPU--cpu-max-prime=20000 Run
Test file I/O
SEQWR sequential write seqrewr sequential rewrite seqrd sequential read RNDRD Random read Rndwr random write RNDRW mixed random Read/write
Sysbench--test=fileio--file-total-size=150g Prepare # New test Catalog
Sysbench--test=fileio--file-total-size=150g--file-test-mode=rndrw--init-rng=on--max-time=300--max-requests=0 Run
Sysbench--test=fileio--file-total-size=150g Cleanup #清理生成出来的文件
Sysbench Other test modules
Memory: Test continuous Read and write performance of memory
Thread: Test the performance of the thread altimeter
Mutex (mutex): Test the performance of an interlocking lock
Sequential Write (SEQWR): Testing the performance of sequential writes
CentOS installation Sysbench and easy to use