自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

MySQL壓力測(cè)試工具的種類與實(shí)際應(yīng)用

數(shù)據(jù)庫 MySQL
我們今天主要講述的是MySQL壓力測(cè)試工具的種類,與MySQL壓力測(cè)試工具的實(shí)際應(yīng)用,以下就是具體內(nèi)容的描述,望在你今后的學(xué)習(xí)中會(huì)對(duì)你有所幫助。

以下的文章主要介紹的是MySQL壓力測(cè)試工具,我們大家都知道MySQL數(shù)據(jù)庫在實(shí)際應(yīng)用中可以說應(yīng)用率還是不算低的,采用MySQL數(shù)據(jù)庫也一般是中小企業(yè),以下的文章就主要介紹的是MySQL數(shù)據(jù)庫的壓力測(cè)試工具。

MySQLslap

July 4th, 2009 Leave a comment Go to comments

 

MySQLslap是一個(gè)MySQL官方提供的壓力測(cè)試工具。以下是比較重要的參數(shù):

 

–defaults-file,配置文件存放位置

 

–concurrency,并發(fā)數(shù)

 

–engines,引擎

 

–iterations,迭代的實(shí)驗(yàn)次數(shù)

 

–socket,socket文件位置

 

自動(dòng)測(cè)試:

–auto-generate-sql,自動(dòng)產(chǎn)生測(cè)試SQL

 

–auto-generate-sql-load-type,測(cè)試SQL的類型。類型有mixed,update,write,key,read。

 

–number-of-queries,執(zhí)行的SQL總數(shù)量

 

–number-int-cols,表內(nèi)int列的數(shù)量

 

–number-char-cols,表內(nèi)char列的數(shù)量

 

例如:

shell>MySQLslap –defaults-file=/u01/MySQL1/MySQL/my.cnf –concurrency=50,100 –iterations=1 –number-int-cols=4 –auto-generate-sql –auto-generate-sql-load-type=write –engine=myisam –number-of-queries=200 -S/tmp/MySQL1.sock

 

Benchmark

 

Running for engine myisam

 

Average number of seconds to run all queries: 0.016 seconds

 

Minimum number of seconds to run all queries: 0.016 seconds

 

Maximum number of seconds to run all queries: 0.016 seconds

 

Number of clients running queries: 50

 

Average number of queries per client: 4

 

Benchmark

Running for engine myisam

 

Average number of seconds to run all queries: 0.265 seconds

 

Minimum number of seconds to run all queries: 0.265 seconds

 

Maximum number of seconds to run all queries: 0.265 seconds

 

Number of clients running queries: 100

 

Average number of queries per client: 2

 

MySQL壓力測(cè)試工具中指定數(shù)據(jù)庫的測(cè)試:

–create-schema,指定數(shù)據(jù)庫名稱

 

–query,指定SQL語句,可以定位到某個(gè)包含SQL的文件

 

例如:

shell>MySQLslap –defaults-file=/u01/MySQL1/MySQL/my.cnf –concurrency=25,50 –iterations=1 –create-schema=test –query=/u01/test.sql -S/tmp/MySQL1.sock

 

Benchmark

 

Average number of seconds to run all queries: 0.018 seconds

 

Minimum number of seconds to run all queries: 0.018 seconds

 

Maximum number of seconds to run all queries: 0.018 seconds

 

Number of clients running queries: 25

 

Average number of queries per client: 1

 

Benchmark

Average number of seconds to run all queries: 0.011 seconds

 

Minimum number of seconds to run all queries: 0.011 seconds

 

Maximum number of seconds to run all queries: 0.011 seconds

 

Number of clients running queries: 50

 

Average number of queries per client: 1

 

以上的相關(guān)內(nèi)容就是對(duì)MySQL壓力測(cè)試工具的介紹,望你能有所收獲。 

 

責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-06-07 17:46:46

Linux壓力測(cè)試工具

2009-05-18 08:52:17

壓力測(cè)試Rpplet測(cè)試

2014-08-11 16:39:25

2015-07-27 18:19:22

Linuxstress參數(shù)

2016-09-14 11:09:06

Web工具運(yùn)維

2019-03-15 09:17:22

Web測(cè)試工具

2012-06-25 14:30:48

Web

2010-05-27 18:48:20

Linux壓力測(cè)試工具

2012-02-02 09:12:16

JavaJMeter

2011-10-09 11:00:17

2012-02-08 14:16:55

Apache

2019-11-22 09:38:50

工具代碼開發(fā)

2010-10-15 09:37:14

MySQL性能測(cè)試

2012-08-01 10:50:48

性能測(cè)試測(cè)試架構(gòu)

2010-06-17 15:25:10

Linux測(cè)試工具

2009-08-11 09:52:37

軟件測(cè)試測(cè)試工具

2010-05-06 10:08:21

2010-06-17 15:16:22

Linux測(cè)試工具

2010-05-18 14:21:35

MySQL視圖

2009-06-26 10:22:58

JSF測(cè)試
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)