加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

webbench安装和简单使用

发布时间:2020-12-13 22:24:30 所属栏目:Linux 来源:网络整理
导读:一、安装流程 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' fail

一、安装流程

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.

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读