介绍几款Web服务器性能压力测试工具
目录结构一、http_load
程序非常小,解压后也不到100K
http_load以并行复用的方式运行,用以测试web服务器的吞吐量与负载。
但是它不同于大多数压力测试工具,它可以以一个单一的进程运行,一般不会把客户机搞死。
还可以测试HTTPS类的网站请求。
下载地址:http_load12mar2006targz
安装很简单
tarzxvfhttp_load12mar2006targz
fcdhttp_load12mar2006makeampampmakei
stall
基本用法:
http_loadp并发访问进程数URL文件
s访问时间
需要访问的
参数其实可以自由组合,参数之间的选择并没有什么限制。
比如你写成http_loadurllisttxt也是可以的。
parallel5
seco
ds300
我们把参数给大家简单说明一下。
parallel
简写p:含义是并发的用户进程数。
fetches
简写f:含义是总计的访问次数
rate
简写p:含义是每秒的访问频率
seco
ds简写s:含义是总计的访问时间
f准备URL文件:urllisttxt,文件格式是每行一个URL,URL最好超过50-100个测试效果比较好。
文件格式如下:
httpwwwqixi
g318comhttpwwwqixi
g318combloghttpwwwqixi
g318comsig
i
httpwwwqixi
g318comsig
uphttpwwwqixi
g318comarticleaquicklookattheredissourcecodehtmlhttpwwwqixi
g318comarticlehowthebrowsere
de
cryptio
htmlhttpwwwqixi
g318comarticlejqueryformvalidatio
plugi
validatejsthebasicusagehtmlhttpwwwqixi
g318comarticleuseflashplugi
swfuploadheadisuploadthescree
shoti
twowayshtmlhttpwwwqixi
g318comarticleshouldmakeyoursiteusi
ghtml5htmlhttpwwwqixi
g318comarticlesimpletou
dersta
dli
uxmemoryallocatio
mecha
ismhtml
fhttpwwwqixi
g318comarticleorga
izethesphi
xapibasedo
phphtmlhttpwwwqixi
g318comarticlejquery19removedbrowsermethodalter
ativeshtmlhttpwwwqixi
g318comarticlethei
stallatio
offedorau
derchi
esesearchsphi
xco
figuratio
htmlhttpwwwqixi
g318comarticleschemaorgtagwasusedtooptimizewebpageshtmlhttpwwwqixi
g318comarticlejqueryrefere
cema
ualtutorialsa
dtoolshtmlhttpwwwqixi
g318comarticlefalli
gi
lovewithbike30reaso
shtmlhttpwwwqixi
g318comarticleo
li
etesttoolsbrowserstackcrossbrowsercompatibilityhtmlhttpwwwqixi
g318comarticletalkaboutjavascriptimagepreloadi
gtech
ologyhtmlhttpwwwqixi
g318comarticlebrokebackmou
tai
htmlhttpwwwqixi
g318comarticlesqli
dexcausedperforma
ceissueshtmlhttpwwwqixi
g318comarticleusepytho
scapyreporterhtmlhttpwwwqixi
g318comarticleapytho
webattackscriptht
fml
例如:
http_loadp30s60urllisttxt
参数了解了,我们来看运行一条命令来看看它的返回结果如下:结果分析:
1、294fetches30maxr