Install WebBench in CentOS for web performance testing.
Webbench is a famous website stress testing tool.
Compile and install:
1. wget http://www.sfr-fresh.com/unix/privat/webbench-1.5.tar.gz
2. tar zxvf webbench-1.5.tar.gz
3. cd webbench-1.5
4. make & make install
Webbench installation error: ctags Not Installed
If ctags make compilation is not installed, the following error occurs:/bin/sh: ctags: command not found.
Yum install ctags
Gcc Not Installed
At this time, an error may be reported:
Cc: Command not found
In this case, gcc is required:
Yum install gcc
Other errors
If the following error occurs:
Cannot create regular file '/usr/local/man/man1': No such file or directory
Create the/usr/local/man/man1 file to solve the problem:
Mkdir-m 644-p/usr/local/man/man1
Start test:
Webbench-c 1000-t 30 http://www.baidu.com/
Parameter description:-c indicates the number of concurrencies, and-t indicates the time (seconds)
The detailed test information is displayed at the end:
Benchmarking: GET http://www.baidu.com/
1000 clients, running 30 sec.
Speed = 400 pages/min, 1030588 bytes/sec.
Requests: 200 susceed, 0 failed.