压力测试工具WebBench
安装Homebrew
YoyodeMacBook-Pro:ifbp-ubpm yoyo$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装yum
YoyodeMacBook-Pro:ifbp-ubpm yoyo$ brew install wget
安装WebBench
$wget http://blog.zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz
$tar -zxf webbench-1.5.tar.gz
$cd webbench-1.5
$sudo mkdir -pv /usr/local/man/man1
$sodu make && sudo make install
测试
webbench -t 60 -c 100 http://183.84.2.5:8090/ap/index.html#/index
webbench -t 运行测试时间 -c 并发数 URL
eg
$ webbench -t 60 -c 100 http://183.84.2.5:8090/ap/index.html#/index
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://183.84.2.5:8090/ap/index.html#/index
100 clients, running 60 sec.
Speed=6689 pages/min, 564099 bytes/sec.
Requests: 6688 susceed, 1 failed.

703

被折叠的 条评论
为什么被折叠?



