26 九月, 2006 03:08
今天为了找Web压力测试工具,来测试下Lighttpd + php-fastcgi 。无意中发现了Autuobench。
官方地址:
http://www.xenoclast.org/autobench/
使用很简单。我是在FreeBSD下安装和使用。
安装:
# cd /usr/ports/benchmarks/autobench/
# make install clean
# cp /usr/local/etc/autobench.conf-dist /usr/local/etc/autobench.conf
# vi /usr/local/etc/autobench.conf
指定两个不同的目标测试服务器,指定两个不同服务器的访问路径及文件。
host1 = 123.456.789.123
host2 = 123.456.789.124
# uri1, uri2
# The URI to test (relative to the document root). For a fair comparison
# the files should be identical (although the paths to them may differ on the
# different hosts)
uri1 = /test.php
uri2 = /test.php
运行:
# autobench
执行后,它会分别对两个Web做测试,并且做对比。这样很方便于两台不同Web服务器测试及对比。




