????PS????????????У???????????????????????????????????????????????????????????????????????????????????Щ?????????????????????????顣???????????????д?????????????????????????????????????????????????????????????????????????????????????????????????Щ??????????????????跨???????????????????б??????????Щ??????????????????????????????????????

????Webbench???????????????????????????Lionbridge?????http://www.lionbridge.com????????

????Webbench??????????????????????????????????????????????????????????webbench????????????????????????????????????????????????????????????????????webbench????????б???????????????????????????棨ASP??PHP??JAVA??CGI???? ?в?????????????????????????SSL????????????????????????о???????????????

????Webbench????????3??????????????????????????????

????????????http://home.tiscali.cz/~cz210552/webbench.html

????????????

????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.

????1??WebBench?????

wget http://www.ha97.com/code/webbench-1.5.tar.gz

tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make
make install

????2??WebBench????

????webbench -c 1000 -t 60 http://192.168.80.157/phpinfo.php

????webbench -c ?????? -t ???в?????? URL

????Apache????????????

??????????300???

root [ ~ ]# webbench -c 300 -t 60 http://192.168.80.157/phpinfo.php
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004?? GPL Open Source Software.
Benchmarking: GET http://192.168.80.157/phpinfo.php
300 clients?? running 60 sec.
Speed=24525 pages/min?? 20794612 bytes/sec.
Requests: 24525 susceed?? 0 failed.

????????????????????24525 pages/min????????????????20794612 bytes/sec.

??????????1000???????????87??????failed???????????????