System CentOS
Compile and install:
wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
Tar zxvf webbench*-c/opt/
cd/opt/webbech*
Make && make install
PS: Sometimes you need to configure Host,vim/etc/hosts
Error 1:
Ctags *.c
/bin/sh:ctags:command not found
Yum-y Install Ctags
Error 2:
Cc:command not found
Yum-y Install GCC
Error 3:
Cannot create regular file '/usr/local/man/man1′: No such file or directory
Mkdir-m 644-p/usr/local/man/man1
Test:
Webbench-c 500-t http://dev.xx.com:8080
-C represents the number of concurrent,-T represents the test time
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.
Benchmarking:get Http://localhost:12345/test
Clients, running-Sec.
speed=414996 pages/min, 490915 bytes/sec.
Requests:207430 Susceed, failed.
Response Requests per second: 414996/60= X pages/sec, the amount of data transferred 490915 bytes/sec per second.
0 Connection failed have been shown, indicating no load.
Add:
1, pressure and performance testing should be put on the product before the launch, rather than on-line after;
2, the test concurrency should be gradually increased by the small, such as 100 when observing the site load is how much, open the page is fluent, concurrency 200 is how much, the website is slow when the concurrency is how much, the site is not open when concurrency is how much;
3, a more detailed test of a page, such as e-commerce website can focus on testing shopping carts, promotional pages, etc., because these pages accounted for the overall site visits a large proportion.
Note: Webbench do stress and performance testing, the software itself will also consume CPU and memory resources, in order to test the accuracy, it is recommended to install Webbench on other servers, has reached the test data more accurate.
Web pressure measurement, webbench installation test