webbench安装和简单使用

一、安装流程

wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz

tar zxvf webbench-1.5.tar.gz

cd webbech-1.5

make

make install
常见问题:

(1)错误信息一:

/bin/sh: 1: ctags: not found Makefile:12: recipe for target 'tags' failed

解决办法:sudo apt-get install ctags

(2)错误信息二:
make: Nothing to be done for `all'这句提示是说明你已经编译好了,而且没有对代码进行任何改动。

若想重新编译,可以先删除以前编译产生的目标文件:
make clean
然后再
make
 
二、使用流程
webbench -c 100 -t 10 http://www.yctech.com

webbench -c 并发数 -t 运行测试时间 URL

按照这个公式直接套用即可,

结果如下:

Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://www.yctech.com/
100 clients, running 10 sec.

Speed=972 pages/min, 145303 bytes/sec.
Requests: 162 susceed, 0 failed.

 

posted @ 2018-12-12 19:17  挑战者V  阅读(360)  评论(0编辑  收藏  举报