linux 下 webbench 压力测试工具

下载webbench-1.5.tar.gz 

# wget http://www.haoxm.net/tools/webbench-1.5.tar.gz

安装

# tar zxvf webbench-1.5.tar.gz

创建安装目录 

# mkdir -p /usr/local/man/

#cd webbench-1.5

#make && make install

压力测试

 参数说明:-c表示并发数,-t表示时间(秒)

[root@localhost webbench-1.5]# webbench -c 500 -t 30  http://192.168.2.155:8088/index.php 

 

Webbench - Simple Web Benchmark 1.5 

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

Benchmarking: GET http://192.168.2.155:8088/index.php

500 clients, running 30 sec.

 

Speed=8236 pages/min, 1162338 bytes/sec.

Requests: 4118 susceed, 0 failed.

你可能感兴趣的:(linux,职场,压力测试,休闲,webbecnch)