webbench压力测试例子

时间:2021-12-22 04:47:36

webbench官网:http://home.tiscali.cz/cz210552/webbench.html

1、Linux压力测试工具webbench适用系统:Linux

2、Linux压力测试工具webbench编译安装:

apt-get install gcc

wget http://static.chenpeng.info/uploads/2012/12/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install

3、Linux压力测试工具webbench使用:

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

4、Linux压力测试工具webbench测试结果示例:

[root@localhost ~]# webbench -c 10000 -t 1 http://localhost:8080/
Webbench – Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://localhost:8080/
10000 clients, running 1 sec.

Speed=3623579 pages/min, 18415692 bytes/sec.
Requests: 60393 susceed, 0 failed.

webbench压力测试例子