博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Sysbench 0.5版安装配置
阅读量:7069 次
发布时间:2019-06-28

本文共 643 字,大约阅读时间需要 2 分钟。

下载

# bzr branch lp:sysbench

安装依赖库

# apt-get install libtool.*

安装

# cd sysbench# ./autogen.sh# ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib # make# make install

使用

sysbench  --test=/root/sysbench0.5/sysbench/tests/db/oltp.lua --mysql-table-engine=innodb --oltp-table-size=1000000 --max-requests=0--max-time=300 --num-threads=16 --oltp-tables-count=10 --report-interval=10 --mysql-host=10.8.8.100 --mysql-port=3312 --mysql-user=admin --mysql-password=123456  --mysql-db=test run

新版本加入了多张表,--oltp-tables-count=参数指定有几张表。

--report-interval=10参数表示每隔10分钟,显示一下TPS信息。

新版本效果

并且还包含了更多的测试脚本,如只插入、删除、更新。

转载地址:http://nlqll.baihongyu.com/

你可能感兴趣的文章
C++ 脑筋急转弯
查看>>
P3723 [AH2017/HNOI2017]礼物
查看>>
spring web app的结构
查看>>
Python+Appium手机纯H5页面测试
查看>>
ES6---数组array新增方法
查看>>
为什么掌握 UML 建模是成为编程高手的一条捷径?
查看>>
【转】vi查询卡片
查看>>
call dword prt[eax]
查看>>
SpringMVC学习笔记:单例与并发问题
查看>>
[20190524]sqlplus 与输出&.txt
查看>>
事务的超时和只读属性
查看>>
Web.config配置文件详解(新手必看)<转>
查看>>
【转】shell编程:数学运算
查看>>
linux琐碎知识点
查看>>
LightOj 1284
查看>>
ASP.NET
查看>>
使用mosh取代ssh提高n2n网络连接稳定性
查看>>
Introduction - 介绍
查看>>
C++之萃取技术(traits)
查看>>
13、ArrayBlocking
查看>>