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