测试表格:
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

最新文章

  1. [CareerCup] 18.5 Shortest Distance between Two Words 两单词间的最短距离
  2. 关于Struts2上传文件的最大Size的设置
  3. Delphi中SQL批量插入记录
  4. 【web】 亿级Web系统搭建——单机到分布式集群
  5. android打印调用栈
  6. sublimeText3中 less2css error: `lessc` is not available的解决办法
  7. PHP - 操作MySQL数据库
  8. PHP第六课 使用方法数组
  9. js面向对象-原型链
  10. "Cache-control”常见的取值private、no-cache、max-age、must-revalidate及其用意
  11. Git + Maven + Jenkins 实现分布式部署
  12. 3 - Two Pointers Algorithm
  13. Spring Boot实现文件下载功能
  14. mysql设置远程访问
  15. cookie设置和清除,解决跨目录读取不到cookie值
  16. WPF PasswordBox不支持绑定解决方法
  17. Gitlab CI 持续集成的完整实践
  18. 恢复mysql 中root 用户的所有权限
  19. springboot+cloud 学习(三)消息中间件 RibbitMQ+Stream
  20. Caffe、TensorFlow、MXnet三个开源库对比+主流分类模型对比

热门文章

  1. python:python之禅
  2. redis简介及安装配置
  3. Sublime3 - 插件cssrem
  4. Kafka笔记--常用指令(新建、删除topic)
  5. OSGeo.OGR.Geometry
  6. [03-01] JSP自定义标签
  7. 使用HashSet<>去除重复元素的集合
  8. ASP.NET Web API上实现 Web Socket - 转
  9. Luogu P4462 [CQOI2018]异或序列
  10. C# 时间戳与DateTime互转