1、cpu性能测试
sysbench --test=cpu
--cpu-max-prime=20000 run
2、线程测试
sysbench
--test=threads --num-threads=64 --thread-yields=100 --thread-locks=2 run
3、磁盘IO性能测试
sysbench
--test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw
prepare
sysbench
--test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw run
sysbench
--test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw
cleanup
4、内存测试
sysbench
--test=memory --memory-block-size=8k --memory-total-size=4G run
5、OLTP测试
sysbench
--test=oltp --mysql-table-engine=myisam --oltp-table-size=1000000 \
--mysql-socket=/tmp/mysql.sock
--mysql-user=test --mysql-host=localhost \
--mysql-password=test
prepare
时间: 2024-10-31 05:17:02