温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

mysql中自带压力测试工具mysqlslap介绍

发布时间:2020-06-01 14:52:39 阅读:325 作者:三月 栏目:MySQL数据库
亿速云mysql数据库,读写分离,安全稳定,弹性扩容,低至0.3元/天!! 点击查看>>

下面一起来了解下mysql中自带压力测试工具mysqlslap介绍,相信大家看完肯定会受益匪浅,文字在精不在多,希望mysql中自带压力测试工具mysqlslap这篇短内容是你想要的。


测试

示例1

查询300次,并发数50
mysqlslap -a -concurrency=50 --number-of-queries 300 -hlocalhost -uroot -proot

Benchmark
    Average number of seconds to run all queries: 19.286 seconds
    Minimum number of seconds to run all queries: 19.286 seconds
    Maximum number of seconds to run all queries: 19.286 seconds
    Number of clients running queries: 1
    Average number of queries per client: 300

Benchmark
    Average number of seconds to run all queries: 16.868 seconds
    Minimum number of seconds to run all queries: 16.868 seconds
    Maximum number of seconds to run all queries: 16.868 seconds
    Number of clients running queries: 2
    Average number of queries per client: 150

Benchmark
    Average number of seconds to run all queries: 13.614 seconds
    Minimum number of seconds to run all queries: 13.614 seconds
    Maximum number of seconds to run all queries: 13.614 seconds
    Number of clients running queries: 3   Average number of queries per client: 100看完mysql中自带压力测试工具mysqlslap这篇文章后,很多读者朋友肯定会想要了解更多的相关内容,如需获取更多的行业信息,可以关注我们的行业资讯栏目。

亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×