sysbench最新版本地址
GitHub - akopytov/sysbench: Scriptable database and system performance benchmark
centos在线安装
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | sudo bash
sudo yum -y install sysbench
查看sysbench版本
sysbench --version
显示
1.0.20
显示帮助
sysbench --help
使用sysbench 测试io
1.prepare
sysbench fileio --file-total-size=5G --file-test-mode=rndrw --time=300 --max-requests=0 prepare
2. run
sysbench fileio --file-total-size=5G --file-test-mode=rndrw --time=300 --max-requests=0 run
5分钟运行后,结果如下:
获取结果后,清理测试文件
sysbench fileio cleanup