当前位置:网站首页>网站压力测试工具——Webbench
网站压力测试工具——Webbench
2022-06-29 19:58:00 【星哥玩云】
一.webbench简介: webbench是由 Lionbridge公司开发的出色的网站压力测试工具,它能测试处在相同硬件上,不同服务的性能以及不同硬件上同一个服务的运行状况。webbench不但能具有便准静态页面的测试能力,还能对动态页面(ASP,PHP,JAVA,CGI)进 行测试的能力。
二.下载并安装webbench: wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz tar zxvf webbench-1.5.tar.gz cd webbench-1.5 make make install
三.进行压力测试: 测试参数解释: -c为并发数,-t为时间(秒) 当并发为200时: webbench -c 200 -t 60 http://www.linuxidc.com/index.php
Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.linuxidc.com/index.php 200 clients, running 60 sec.
Speed=34292 pages/min, 29512018 bytes/sec. Requests: 34292 susceed, 0 failed.
当并发为800时: webbench -c 800 -t 60 http://www.linuxidc.com/index.php
Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.linuxidc.com/index.php 800 clients, running 60 sec.
Speed=39571 pages/min, 33104224 bytes/sec. Requests: 38576 susceed, 995 failed.
四.测试注意事项: 1.压力测试工作应该放到产品上线之前,而不是上线以后; 2.webbench 做压力测试时,该软件自身也会消耗CPU和内存资源,为了测试准确,请将 webbench 安装在别的服务器上; 3.测试时尽量跨公网进行,而不是内网; 4.测试时并发应当由小逐渐加大,观察一下网站负载及打开是否流程,直到网站打开缓慢甚至网站完全打不开; 5.应尽量进行单元测试,如B2C网站可以着重测试购物车、推广页面等,因为这些页面占整个网站访问量比重较大。
边栏推荐
- WPS和Excele
- Test method learning
- Foxit software was invited to appear at the 2022 advanced manufacturing digital intelligence development forum
- Etcd database source code analysis - put process of server
- 第二章(物理层)
- 关于印发宝安区重点产业项目和总部项目遴选及用地保障实施细则(2022修订版)的通知
- 并查集(Union-Find)
- Zotero期刊自動匹配更新影響因子
- Performance improvement at the cost of other components is not good
- JVM(2) 垃圾回收
猜你喜欢

Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game

Configuration du Flume 4 - source personnalisée + sink

软件测试逻辑覆盖相关理解

Flume configuration 4 - Custom source+sink

画虎国手孟祥顺数字藏品限量发售,随赠虎年茅台

Linux安装MySQL8

Flume配置3——拦截器过滤

Flume配置4——自定义Source+Sink

【Try to Hack】vulnhub narak

Flume配置4——自定義Source+Sink
随机推荐
NLP - giza++ implements word alignment
【Try to Hack】vulnhub narak
JVM (4) bytecode technology + runtime optimization
As the "only" privacy computing provider, insight technology is the "first" to settle in the Yangtze River Delta data element circulation service platform
Koa source code analysis
Flume-ng配置
软件工程—原理、方法与应用
Kdd 2022 | prise en compte de l'alignement et de l'uniformité des représentations dans le Filtrage collaboratif
Flume配置2——监控之Ganglia
Sword finger offer 41 Median in data stream
A great open source image watermarking solution
Koa 源码剖析
Notepad++ -- macro (record operation process)
[sword finger offer] 51 Reverse pair in array
14,04 millions! Appel d'offres pour la mise à niveau de la base de données relationnelle et du système logiciel Middleware du Département des ressources humaines et sociales de la province du Sichuan!
Etcd database source code analysis - put process of server
一个mysql里有3306端口下,一个mysql有20多个数据库,怎么一键备份20多个数据库,做系统备份,防止数据误删除?
2022年理财利率都降了,那该如何选择理财产品?
Foxit software was invited to appear at the 2022 advanced manufacturing digital intelligence development forum
freemarker模板框架生成图片