paip.mysql 性能测试by mysqlslap
paip.mysql 性能测试by mysqlslap
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
///////////模式
usr/local/mysql/bin/mysqlslap --defaults-file=/etc/my.cnf --concurrency=200 --iterations=1 --number-int-cols=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=myisam,innodb --number-of-queries=200 -S/tmp/mysql.sock --debug-info -uroot -p123
concurrency 客户端数量
--auto-generate-sql-load-type 代表要测试的是读还是写还是两者混合的(read,write,update,mixed)
--debug-info 代表要额外输出CPU以及内存的相关信息
///////////////////我总结的模式
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=innodb --number-of-queries=100 --port=3307 -uroot -p
两个测试auto-generate-sql-load-type=write --number-of-queries=100
测试读能力 read ,5000
/////////获得help
\mysqlslap.exe" --help
C:\Users\Administrator>"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file
="C:\MySQL Server 5.6\my-default.ini" --concurrency=1000 --auto-generate-sql --
auto-generate-sql-load-type=write --engine=innodb --number-of-queries=1000
--port=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 2.856 seconds
Minimum number of seconds to run all queries: 2.856 seconds
Maximum number of seconds to run all queries: 2.856 seconds
Number of clients running queries: 1000
Average number of queries per client: 1
Running for engine innodb
Average number of seconds to run all queries: 3.841 seconds
Minimum number of seconds to run all queries: 3.841 seconds
Maximum number of seconds to run all queries: 3.841 seconds
Number of clients running queries: 1000
Average number of queries per client: 1
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 3.560 seconds
Minimum number of seconds to run all queries: 3.560 seconds
Maximum number of seconds to run all queries: 3.560 seconds
Number of clients running queries: 1000
Average number of queries per client: 1
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=100 --auto-generate-sql --auto-generate-sql-load-type=write --engine=innodb --number-of-queries=1000 --port=3307 -uroot -p
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 2.310 seconds
Minimum number of seconds to run all queries: 2.310 seconds
Maximum number of seconds to run all queries: 2.310 seconds
Number of clients running queries: 100
Average number of queries per client: 10
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=innodb --number-of-queries=1000 --port=3307 -uroot -p
Running for engine innodb
Average number of seconds to run all queries: 50.210 seconds
Minimum number of seconds to run all queries: 50.210 seconds
Maximum number of seconds to run all queries: 50.210 seconds
Number of clients running queries: 1
Average number of queries per client: 1000
-------write 60
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=innodb --number-of-queries=60 --port=3307 -uroot -p
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 2.498 seconds
Minimum number of seconds to run all queries: 2.498 seconds
Maximum number of seconds to run all queries: 2.498 seconds
Number of clients running queries: 1
Average number of queries per client: 60
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --auto-generate-sql-load-type=read --engine=innodb --number-of-queries=4000 --port=3307 -uroot -p
------------read 4000
C:\Users\Administrator> "C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-f
le="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --
uto-generate-sql-load-type=read --engine=innodb --number-of-queries=4000 -
port=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 2.014 seconds
Minimum number of seconds to run all queries: 2.014 seconds
Maximum number of seconds to run all queries: 2.014 seconds
Number of clients running queries: 1
Average number of queries per client: 4000
----------read 2800
C:\Users\Administrator> "C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-f
le="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --
uto-generate-sql-load-type=read --engine=innodb --number-of-queries=2800 -
port=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 1.780 seconds
Minimum number of seconds to run all queries: 1.780 seconds
Maximum number of seconds to run all queries: 1.780 seconds
Number of clients running queries: 1
Average number of queries per client: 2800
/////////////// Error when connecting to server: 1040 Too many connections
show VARIABLES like '%max_connections%'
mysql默认的连接为151个,最大10万...
///////////tf
"f:\MySQL Server 5.6sec\bin\mysqld.exe" --defaults-file="c:\MySQL Server 5.6\my-default.ini"
C:\Users\Administrator> "C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-f
le="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --
uto-generate-sql-load-type=read --engine=innodb --number-of-queries=2800 -
port=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 1.780 seconds
Minimum number of seconds to run all queries: 1.780 seconds
Maximum number of seconds to run all queries: 1.780 seconds
Number of clients running queries: 1
Average number of queries per client: 2800
--------read 4000
C:\Users\Administrator> "C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-f
le="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --
uto-generate-sql-load-type=read --engine=innodb --number-of-queries=4000 -
port=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 1.936 seconds
Minimum number of seconds to run all queries: 1.936 seconds
Maximum number of seconds to run all queries: 1.936 seconds
Number of clients running queries: 1
Average number of queries per client: 4000
-------write 60
"C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults-file="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql --auto-generate-sql-load-type=write --engine=innodb --number-of-queries=60 --port=3307 -uroot -p
C:\Users\Administrator> "C:\MySQL Server 5.6\bin\mysqlslap.exe" --defaults
e="C:\MySQL Server 5.6\my-default.ini" --concurrency=1 --auto-generate-sql
to-generate-sql-load-type=write --engine=innodb --number-of-queries=60
rt=3307 -uroot -p
Enter password:
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 6.136 seconds
Minimum number of seconds to run all queries: 6.136 seconds
Maximum number of seconds to run all queries: 6.136 seconds
Number of clients running queries: 1
Average number of queries per client: 60
paip.mysql 性能测试by mysqlslap的更多相关文章
- paip.mysql 性能测试 报告 home right
paip.mysql 性能测试 报告 home right 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog ...
- mysql 性能测试工具 mysqlslap
原文链接: https://my.oschina.net/moooofly/blog/152547 连接数据库: # mysqlslap -h localhost -uroot -p123456 -- ...
- mysql性能测试-------重要!!!
我们在做性能测试的目的是什么,就是要测出一个系统的瓶颈在哪里,到底是哪里影响了我们系统的性能,找到问题,然后解决它.当然一个系统由很多东西一起组合到一起,应用程序.数据库.服务器.中中间件等等很多东西 ...
- MySQL性能测试工具之mysqlslap
MySQL性能测试工具之mysqlslap [日期:2014-10-05] 来源:Linux社区 作者:tongcheng [字体:大 中 小] --转自Linux社区:http://www.l ...
- paip.mysql 性能跟iops的以及硬盘缓存的关系
paip.mysql 性能跟iops的以及硬盘缓存的关系 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.c ...
- PAIP.MYSQL SLEEP 连接太多解决
PAIP.MYSQL SLEEP 连接太多解决 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn.n ...
- paip.mysql 批量kill 连接.
paip.mysql 批量kill 连接. 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn.net ...
- paip.mysql 全文索引查询空白解决
paip.mysql 全文索引查询空白解决 或者 Incorrect key file for table: \'%s\'. Try to repair it 作者Attilax 艾龙, ...
- paip.mysql fulltext 全文搜索.最佳实践.
paip.mysql fulltext 全文搜索.最佳实践. 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blo ...
随机推荐
- linux下配置nginx使用service nginx start 服务
解压出来后执行 mkdir /var/tmp/nginx/client/ -pv 接下来我们简单的为它提供一个服务脚本吧! # vim /etc/init.d/nginx 新建文件/etc/rc.d ...
- 原生态jdbc的应用技术
为了更好的了解jdbc,最近查阅了前期学习的资料,整理归纳了一下,整理出来了一套jdbc常用的工具类.之所以在这里撰文,一来可以和大家共享技术的魅力,二来可以方便以后的查阅方便.以下是一个jdbc的优 ...
- Centos7.2 yum配置
一.yum 简介 yum,是Yellow dog Updater, Modified 的简称,是杜克大学为了提高RPM 软件包安装性而开发的一种软件包管理器.起初是由yellow dog 这一发行版的 ...
- 利用GBDT模型构造新特征
[本文链接:http://www.cnblogs.com/breezedeus/p/4109480.html,转载请注明出处] 我的博客主营地迁至github,欢迎朋友们有空去看看:http://br ...
- java和android及IOS对接RSA加密经验
1.网上找的java生成RSA密钥对的例子,产生的字附串实际上是hax后和密钥串 你可以将他们当成静态字附串存在java代码里 2.android和java可以代码复用,IOS对接比较麻烦 3.IOS ...
- Android中的TabHost
TabHost是整个Tab的容器,包含TabWidget和FrameLayout两个部分,TabWidget是每个Tab的表情,FrameLayout是Tab内容. 实现方法:继承TabActivit ...
- ABP框架详解(七)Caching
在ABP框架中存在一个缓存机制,使用ICache的继承类来存储最终需要缓存的数据,可以吧ICache看成一个字典对象,使用Key作为真实数据的具有唯一性的表示.使用上与字典对象完全相同,Get方法传递 ...
- Java jstatd详解
jstatd 命令全称: Virtual Machine jstat Daemon DESCRIPTION The jstatd tool is an RMI server application ...
- windows 配置 apache + php
需要工具 apache 下载地址 php for windows (与apache同版本,使用线程安全)下载地址 vc (Visual Studio C++) 根据 apache 与 php 的版 ...
- .Net Core CLI–Ubuntu 14安装
sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main&q ...