`
cocos
  • 浏览: 400510 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

mysqlslap

阅读更多
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Pr
ogram Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --num
ber-int-cols=4 --auto-generate-sql --auto-generate-sql-load-type=update --engine
=myisam --number-of-queries=10000 -uroot -p8319999
update
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 16.187 seconds
        Minimum number of seconds to run all queries: 16.187 seconds
        Maximum number of seconds to run all queries: 16.187 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
read
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 5.703 seconds
        Minimum number of seconds to run all queries: 5.703 seconds
        Maximum number of seconds to run all queries: 5.703 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
write
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 1.765 seconds
        Minimum number of seconds to run all queries: 1.765 seconds
        Maximum number of seconds to run all queries: 1.765 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 7.968 seconds
        Minimum number of seconds to run all queries: 7.968 seconds
        Maximum number of seconds to run all queries: 7.968 seconds
        Number of clients running queries: 50
        Average number of queries per client: 1000
mixed:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 52.281 seconds
        Minimum number of seconds to run all queries: 52.281 seconds
        Maximum number of seconds to run all queries: 52.281 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 51.985 seconds
        Minimum number of seconds to run all queries: 51.985 seconds
        Maximum number of seconds to run all queries: 51.985 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Pr
ogram Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --cre
ate-schema=edu_591up --query="select userid from ol_user where username='zbwangc
hao@163.com'" --number-of-queries=10000 -uroot -p8319999
Benchmark
        Average number of seconds to run all queries: 3.813 seconds
        Minimum number of seconds to run all queries: 3.813 seconds
        Maximum number of seconds to run all queries: 3.813 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Pr
ogram Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=10 --cr
eate-schema=edu_591up --query="select userid,username from ol_user where userid=
25091" --number-of-queries=10000 -uroot -p8319999
Benchmark
        Average number of seconds to run all queries: 1.746 seconds
        Minimum number of seconds to run all queries: 0.781 seconds
        Maximum number of seconds to run all queries: 1.954 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Pr
ogram Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=10 --cr
eate-schema=edu_591up --query="update ol_user set username='zbwangchao@163.com'
where userid=25091" --number-of-queries=10000 -uroot -p8319999
Benchmark
        Average number of seconds to run all queries: 2.229 seconds
        Minimum number of seconds to run all queries: 1.969 seconds
        Maximum number of seconds to run all queries: 3.172 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Pr
ogram Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=10 --cr
eate-schema=edu_591up --query="insert into ol_user(username,password)values('ton
gchao','dddddddddddddddd')" --number-of-queries=10000 -uroot -p8319999
Benchmark
        Average number of seconds to run all queries: 8.992 seconds
        Minimum number of seconds to run all queries: 8.078 seconds
        Maximum number of seconds to run all queries: 9.750 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Program Files\MySQL\MySQL Server 5.1\scripts>mysqlslap --defaults-file="C:/Program Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="insert into ol_user(username,password)values('tongchao','dddddddddddddddd')" --number-of-queries=10000 -uroot -p8319999
Benchmark
        Average number of seconds to run all queries: 2.000 seconds
        Minimum number of seconds to run all queries: 2.000 seconds
        Maximum number of seconds to run all queries: 2.000 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
(无索引)
mysqlslap --defaults-file="C:/Program Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="insert into ol_user(username,password)values('tongchao','dddddddddddddddd')" --number-of-queries=10000 -uroot -p8319999
mysqlslap --defaults-file="C:/Program Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="update ol_user set password='tongchaotongchao' where userid = 13" --number-of-queries=10000 -uroot -p8319999
mysqlslap --defaults-file="C:/Program Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="select * from ol_user where userid = 13" --number-of-queries=10000 -uroot -p8319999
*******************************************************************************************************************************
mysqlslap --defaults-file="D:/MySQL/MySql5.5/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="insert into ol_user(username,password)values('tongchao','dddddddddddddddd')" --number-of-queries=10000 -uroot
mysqlslap --defaults-file="D:/MySQL/MySql5.5/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="update ol_user set password='tongchaotongchao' where userid = 13" --number-of-queries=100000 -uroot
mysqlslap --defaults-file="D:/MySQL/MySql5.5/my.ini" --concurrency=50 --iterations=1 --create-schema=edu_591up --query="select * from ol_user where userid = 13" --number-of-queries=10000 -uroot
二、自动测试
mysqlslap --defaults-file="C:/Program Files/MySQL/MySQL Server 5.1/my.ini" --concurrency=50 --iterations=1 --number-int-cols=4 --auto-generate-sql --auto-generate-sql-load-type=update --engine=myisam,innodb --number-of-queries=10000 -uroot -p8319999
mysqlslap --defaults-file="D:/MySQL/MySql5.5/my.ini" --concurrency=50 --iterations=1 --number-int-cols=4 --auto-generate-sql --auto-generate-sql-load-type=update --engine=myisam,innodb --number-of-queries=10000 -uroot
mysqlslap --defaults-file="C:/Program Files/MySQL/mysql-5.1.54-win32/my.ini" --concurrency=50 --iterations=1 --number-int-cols=4 --auto-generate-sql --auto-generate-sql-load-type=update --engine=myisam,innodb --number-of-queries=10000 -uroot
结果:
5.1
update:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 17.547 seconds
        Minimum number of seconds to run all queries: 17.547 seconds
        Maximum number of seconds to run all queries: 17.547 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 47.860 seconds
        Minimum number of seconds to run all queries: 47.860 seconds
        Maximum number of seconds to run all queries: 47.860 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
write:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 1.587 seconds
        Minimum number of seconds to run all queries: 0.766 seconds
        Maximum number of seconds to run all queries: 1.890 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 1.868 seconds
        Minimum number of seconds to run all queries: 1.812 seconds
        Maximum number of seconds to run all queries: 2.094 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
mixed:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 52.453 seconds
        Minimum number of seconds to run all queries: 52.453 seconds
        Maximum number of seconds to run all queries: 52.453 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 66.531 seconds
        Minimum number of seconds to run all queries: 66.531 seconds
        Maximum number of seconds to run all queries: 66.531 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
5.5
update:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 14.360 seconds
        Minimum number of seconds to run all queries: 14.360 seconds
        Maximum number of seconds to run all queries: 14.360 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 43.843 seconds
        Minimum number of seconds to run all queries: 43.843 seconds
        Maximum number of seconds to run all queries: 43.843 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
       
write:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 1.526 seconds
        Minimum number of seconds to run all queries: 0.703 seconds
        Maximum number of seconds to run all queries: 1.766 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 1.573 seconds
        Minimum number of seconds to run all queries: 0.766 seconds
        Maximum number of seconds to run all queries: 1.828 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
mixed:
Benchmark
        Running for engine myisam
        Average number of seconds to run all queries: 39.468 seconds
        Minimum number of seconds to run all queries: 39.468 seconds
        Maximum number of seconds to run all queries: 39.468 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 50.468 seconds
        Minimum number of seconds to run all queries: 50.468 seconds
        Maximum number of seconds to run all queries: 50.468 seconds
        Number of clients running queries: 50
        Average number of queries per client: 200
C:\Documents and Settings\Administrator>mysqlslap --defaults-file="D:/MySQL/MySq
l5.5/my.ini" --concurrency=100 --iterations=5 --number-int-cols=4 --auto-generat
e-sql --auto-generate-sql-load-type=update --engine=innodb --number-of-queries=1
000 -uroot
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 3.371 seconds
        Minimum number of seconds to run all queries: 2.547 seconds
        Maximum number of seconds to run all queries: 4.515 seconds
        Number of clients running queries: 100
        Average number of queries per client: 10
       
       
C:\Documents and Settings\Administrator>mysqlslap --defaults-file="C:/Program
les/MySQL/mysql-5.1.54-win32/my.ini" --concurrency=100 --iterations=5 --number
nt-cols=4 --auto-generate-sql --auto-generate-sql-load-type=update --engine=in
db --number-of-queries=1000 -uroot
Benchmark
        Running for engine innodb
        Average number of seconds to run all queries: 3.831 seconds
        Minimum number of seconds to run all queries: 3.797 seconds
        Maximum number of seconds to run all queries: 3.860 seconds
        Number of clients running queries: 100
        Average number of queries per client: 10  
分享到:
评论

相关推荐

    mysqlslap压力测试工具

    ### MySQLslap压力测试工具详解 #### 一、概述 MySQLslap是MySQL数据库自带的一款压力测试工具,用于评估MySQL数据库在高并发环境下的性能表现。通过模拟多个客户端并发访问数据库,MySQLslap可以帮助我们更好地...

    mysqlslap.rar

    mysqlslap

    mysqlslap 工具

    MySQLslap是一个内置在MySQL服务器中的性能评估工具,主要用于模拟多个客户端同时对数据库进行操作,以测试数据库的负载能力和响应时间。这个工具在MySQL 5.1.44版本中首次引入,对于数据库管理员和开发者来说,是...

    mysqlslap使用总结电脑资料.doc

    MySQLslap 使用总结 MySQLslap 是一个命令行工具,用于模拟多个客户端对 MySQL 数据库的负载,并输出计时信息。下面是 MySQLslap 的使用总结: 查看帮助信息 在命令行中输入 `mysqlslap --help` 可以查看 ...

    MySQL压力测试工具mysqlslap.pdf

    MySQL 压力测试工具 mysqlslap MySQL 压力测试工具 mysqlslap 是一个功能强大且易于使用的压力测试工具,从 MySQL 5.1.4 版本开始提供。通过模拟多个并发客户端访问 MySQL,以执行测试,使用起来非常简单。 ...

    MySQL压力测试工具mysqlslap资料.pdf

    MySQL 压力测试工具 mysqlslap 资料 MySQL 压力测试工具 mysqlslap 是 MySQL 从 5.1.4 版开始带有的一个压力测试工具,通过模拟多个并发客户端访问 MySQL 来执行测试,使用起来非常的简单。 mysqlslap 工具的主要...

    mysqlslap 性能测试脚本自动生成测试性能.xlsx

    具体用法,请查看我博客https://blog.csdn.net/colcool/article/details/100841517

    MySQL压力测试工具mysqlslap宣贯.pdf

    MySQL压力测试工具mysqlslap是MySQL数据库管理系统提供的一种性能测试工具,从5.1.4版本开始被引入。它的主要作用是模拟多个并发客户端对MySQL服务器进行访问,从而评估和测试MySQL服务器在高负载条件下的性能表现。...

    mysqlslap进行压力测试参考.pdf

    MySQLslap是一个由MySQL官方提供的压力测试工具,用于模拟多客户端并发访问MySQL服务器,从而评估数据库在高负载下的性能和稳定性。它可以帮助管理员检测数据库在实际应用中的性能瓶颈,优化数据库配置,提升整体...

    MySQL压测工具mysqlslap的介绍与使用

    MySQL压测工具`mysqlslap`是MySQL数据库系统自带的一款性能测试工具,它主要用于评估MySQL服务器在特定工作负载下的性能表现。与其它压测工具相比,`mysqlslap`的操作简单,可自动生成测试数据,并模拟多客户端并发...

    详解Mysql5.7自带的压力测试命令mysqlslap及使用语法

    MySQL 5.7 自带的 `mysqlslap` 是一个非常实用的工具,用于模拟客户端负载,对数据库进行压力测试,以评估其性能和稳定性。通过模拟多用户并发访问,`mysqlslap` 可以帮助管理员了解在特定负载下数据库的表现,从而...

    Mysqlslap MySQL压力测试工具 简单教程

    MySQL从5.1.4版开始带有一个压力测试工具mysqlslap,通过模拟多个并发客户端访问mysql来执行测试,使用起来非常的简单。通过mysqlslap –help可以获得可用的选项,这里列一些主要的参数,更详细的说明参考官方手册。...

    mysqlslap.exe

    mysql自带的压力测试工具 forwindows

    MySQL压力测试方法 如何使用mysqlslap测试MySQL的压力?

    首选工具mysql自带的:mysqlslap –auto-generate-sql, -a 自动生成测试表和数据 –auto-generate-sql-load-type=type 测试语句的类型。取值包括:read,key,write,update和mixed(默认)。 –number-char-c

    MYSQL集群测试

    1. 测试工具介绍:文档提到了mysqlslap、sysbench、supersmack等工具,这些都是用于测试MYSQL性能的工具。 - mysqlslap是一个用于模拟多用户访问MySQL数据库的性能测试工具,它可以用来进行并发读写测试。 - ...

Global site tag (gtag.js) - Google Analytics