测试表格:
CREATE TABLE `sbtest` ( `id` int(10) unsigned NOT NULL auto_increment, `k` int(10) unsigned NOT NULL default '0', `c` char(120) NOT NULL default '', `pad` char(60) NOT NULL default '', PRIMARY KEY (`id`), KEY `k` (`k`));

 

 

 

 

sysbench --test=/usr/share/doc/sysbench/tests/db/oltp.lua --oltp-table-size=800000 --oltp-read-only=off --init-rng=on --num-threads=16 --max-requests=0 --oltp-dist-type=uniform --max-time=3600 --report-interval=10 --mysql-user=xxxxx --mysql-password='xxxxx' --db-driver=mysql --mysql-host=xxxxxx --mysql-db=test run > /tmp/result-12-16.log

 

 

sysbench --test=/usr/share/doc/sysbench/tests/db/oltp.lua --oltp-table-size=10000000 --oltp-read-only=off --init-rng=on --num-threads=256 --max-requests=0 --oltp-dist-type=uniform --max-time=100 --report-interval=10 --mysql-user=root --mysql-password='123456' --db-driver=mysql --mysql-host=xxxxx --mysql-db=xxx --mysql-port=xxxx run

相关文章:

  • 2021-06-27
  • 2021-08-22
  • 2022-01-10
  • 2021-07-03
  • 2021-10-24
  • 2021-06-28
  • 2021-11-07
猜你喜欢
  • 2021-08-10
  • 2021-07-15
  • 2022-12-23
  • 2022-01-16
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案