平淡人生

静待花开,花开常有香相伴;倾听流水,流水总有乐相陪;有缘清风携舟涉碧水,无缘细雨伴君独自行。

FreeBSD 8.0下webbench压力测试软件

FreeBSD 8.0下webbench压力测试软件,对于网站开发完成后做某个页面的性能压力测试是一款比较不错的软件。
1.下载软件
webbench-1.5.tar
2.下载后进行解压工作

leaf# tar -zxvf webbench-1.5.tar.gz
leaf# cd webbench-1.5
kiccleaf# make install
cc -O2 -pipe  -c webbench.c
cc -O2 -pipe   -o webbench webbench.o
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install -d /usr/local/share/doc/webbench
install -m 644 debian/copyright /usr/local/share/doc/webbench
install -m 644 debian/changelog /usr/local/share/doc/webbench
kiccleaf# rehash

3、使用:参数说明:-c表示并发数,-t表示持续时间(秒) <网址/文件名>

leaf# webbench -c 1000 -t 30 http://192.168.1.10/index.php
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.1.10/index.php
1000 clients, running 30 sec.
Speed=38058602 pages/min, 23930171 bytes/sec.
Requests: 27676 susceed, 19001625 failed.

Categorised as: FreeBSD技术