webbench linux压力测试工具

wget http://www.zeroplace.cn/centos/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
webbench -c 500 -t 30 http://127.0.0.1/test.jpg

参数说明:

-c表示并发数,

-t表示运行时间(秒)

最后就会出现详细的测试信息了:

Webbench – Simple Web Benchmark 1.5

Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://127.0.0.1/test.jpg

500 clients, running 30 sec.

Speed=3230 pages/min, 11614212 bytes/sec.

Requests: 1615 susceed, 0 failed.

可能错误如下:

1、install: cannot create regular file `/usr/local/man/man1': No such file or directory

方法:

mkdir -p /usr/local/man/man1

2、/bin/sh: ctags: command not found

make: [tags] Error 127 (ignored)

方法:

yum install tags


文章来自: 本站原创
Tags:
评论: 0 | 查看次数: 7187