MySQLのストレステストツールのsysbench

例読み取り専用2.1
./bin/sysbench --test =を/ usr / share / sysbench /試験/含む/ oltp_legacy / oltp.lua --mysqlホスト= 192.168.80.134 --mysqlポート= 3306 --mysqlユーザ=ルート--mysqlパスワード= root123 --mysql -db = sbtest --oltp-テーブルカウント= 10 --oltpテーブルサイズ= 10000000 --report間隔= 10 --oltp-DIST型=均一--rand-INIT = --max-リクエストに = 0 --oltp・テスト・モード= nontrx --oltp-nontrxモード= --oltp-読み取り専用= =上--oltpスキップ-TRXの選択= = 12 120 --threads --timeある
[PREPARE |実行|クリーン]
データを生成|実行テスト|クリアデータ

2.2混合读写
の.bin / sysbench --test =を/ usr / share / sysbench /試験/含む/ oltp_legacy / oltp.lua --mysqlホスト= 192.168.80.134 --mysqlポート= 3306 --mysqlユーザー= --max上のルート--mysqlパスワード= root123 --mysql-DB = sbtest --oltp-テーブルカウント= 10 --oltp-テーブルサイズ= 500000 --report-間隔= 10 --rand-INIT = -requests = 0 --oltpテストモード= nontrx --oltp-nontrxモード=選択--oltp-読み取り専用=オフ--time = 120 --threads = 128調製
[|実行|準備クリーンアップ]

2.3修改数据只写测试
の.bin / sysbench --test =を/ usr / share / sysbench /試験/含む/ oltp_legacy / update_index.lua --mysqlホスト= 192.168.80.134 --mysqlポート= 3306 --mysql-ユーザー=ルート--mysql-パスワード= root123 --mysql-DB = sbtest --oltp-テーブルカウント= 10 --oltp-テーブルサイズ= 500000 --report-間隔= 10 --rand-INIT =上- -max-リクエスト= 0 --oltpテストモード= nontrx --oltp-nontrxモード=選択--oltp-読み取り専用=オフ--time = 120 --threads = 128調製
実行| |準備[クリーンアップ]

おすすめ

転載: www.cnblogs.com/h-gallop/p/11646140.html