webbench :1.5 http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz
从官网下载webbench-1.5.tar.gz
1.解压 tar -zxvf webbench-1.5.tar.gz
2. cd webbench-1.5
3.make
cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
webbench.c: In function ‘alarm_handler’:
webbench.c:77: warning: unused parameter ‘signal’
cc -Wall -ggdb -W -O -o webbench webbench.o
ctags *.c
/bin/sh: ctags: command not found
make: [tags] Error 127 (ignored)
此处错误是没有ctags这个包,然后安装此包
4.rpm -ivh ctags-5.8-2.el6.x86_64.rpm
warning: ctags-5.8-2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:ctags ########################################### [100%]
5.再次make 没有错误
6.make install
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install: cannot create regular file `/usr/local/man/man1': No such file or directory
make: *** [install] Error 1
此处是没有相应的文件夹
mkdir -m 644 -p /usr/local/man/man1
7.再次make install
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install -d /usr/local/share/doc/webbench
install -m 644 debian/copyright /usr/local/share/doc/webbench
install -m 644 debian/changelog /usr/local/share/doc/webbench
正常
8.简单测试
webbench -c 500 -t 30 http://www.baidu.com
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.baidu.com
500 clients, running 30 sec.
Speed=10112 pages/min, 26296 bytes/sec.
Requests: 5056 susceed, 0 failed.
完成