官方介绍:Web Bench is very simple tool for benchmarking WWW or proxy servers. Uses fork() for simulating multiple clients and can use HTTP/0.9-HTTP/1.1 requests. This benchmark is not very realistic, but it can test if your HTTPD can realy handle that many clients at once (try to run some CGIs) without taking your machine down. Displays pages/min and bytes/sec. Can be used in more aggressive mode with -f switch.
安装ctags:
0 1 2 3 4 5 |
[root@hk t4x.org]# cd /byrd/tools/ [root@hk ~]# wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz [root@hk tools]# tar zxf ctags-5.8.tar.gz [root@hk tools]# cd ctags-5.8 [root@hk ctags-5.8]# ./configure [root@hk ctags-5.8]# make && make install |
安装webbench:
0 1 2 3 4 5 6 |
[root@hk ctags-5.8]# cd /byrd/tools/ [root@hk tools]# wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz [root@hk tools]# tar zxf webbench-1.5.tar.gz [root@hk tools]# cd webbench-1.5 [root@hk webbench-1.5]# make ctags *.c [root@hk webbench-1.5]# make install |
测试过程:
0 1 2 3 4 5 6 7 8 |
[root@hk webbench-1.5]# webbench -c 500 -t 30 http://hk.t4x.org/ Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. Benchmarking: GET http://hk.t4x.org/info.php 500 clients, running 30 sec. Speed=4728 pages/min, 25259 bytes/sec. Requests: 2364 susceed, 0 failed. |
错误整理:
0 1 |
Q:/bin/sh: ctags: command not found A:wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar #.configure && make && make install,如果依然不行请将/usr/local/bin/加入LANG中 |
申明:本文由BYRD原创(基于PHP5.5.11),未经许可禁止转载! SourceByrd's Weblog-https://note.t4x.org/system/web-bench-benchmarking/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!