Webbench can simulate up to 30,000 concurrent connections to test the load capacity of the website, the personal feeling is better than the AB pressure test tool with Apache, installation and use is particularly convenient.
1. Applicable system: Linux
2. Compile and install:
wget http://www.ha97.com/code/webbench-1.5.tar.gztar zxvf webbench-1.5.tar. gzcd webbench-1.5makemake Install
If a compilation error occurs
[[email protected]] # make cc-wall-ggdb-w -o-c-o webbench.o webbench. Cwebbenchfunction ' alarm_handler ':webbench. c:77:warning:-wall-ggdb-w o- o Webbench Webbench. *. c/bin/sh:ctags: command not foundmake: [tags] Error 127 (ignored)
Ctags components are not installed, use yum-y install ctags to solve the problem
Install-s webbench/usr/local/-M 644 webbench.1/usr/local/man/man1installfilefile or Directorymake: * * [Install] Error 1
Workaround
Mkdir-m 644-p/usr/local/man/man1
3. Use:
Webbench-c 1000-t http://127.0.0.1/phpinfo.php
Parameter description:-C for concurrency number,-T for time (seconds)
4. Examples of test results:
Webbench-simple Web Benchmark 1.51997-2004, GPL Open Source software. Benchmarking: GET http://127.0.0.1/test.jpgclients, running sec. Speed = 3230 pages/min, 11614212 bytes/sec.requests: 1615 Susceed, 0 failed.
Website Performance Web stress test tool Webbench