webbench安裝使用

來源:互聯網
上載者:User

標籤:webbech報錯   webbench安裝   webbench使用   webbench測試   

安裝
# tar zxvf webbench-1.5.tar.gz
# cd webbench-1.5
# make && make install
cc -Wall -ggdb -W -O   -c -o webbench.o webbench.c
webbench.c: In function ‘alarm_handler’:
webbench.c:77: 警告:未使用的參數 ‘signal’
cc -Wall -ggdb -W -O  -o webbench webbench.o 
ctags *.c
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

(按照下面安裝就好)

# install -s webbench /usr/local/bin


先建立目錄,不然會報錯

#mkdir /usr/local/man/man1 

# 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
# webbench
webbench [option]... URL
  -f|--force               Don‘t wait for reply from server.
  -r|--reload              Send reload request - Pragma: no-cache.
  -t|--time <sec>          Run benchmark for <sec> seconds. Default 30.
  -p|--proxy <server:port> Use proxy server for request.
  -c|--clients <n>         Run <n> HTTP clients at once. Default one.
  -9|--http09              Use HTTP/0.9 style requests.
  -1|--http10              Use HTTP/1.0 protocol.
  -2|--http11              Use HTTP/1.1 protocol.
  --get                    Use GET request method.
  --head                   Use HEAD request method.
  --options                Use OPTIONS request method.
  --trace                  Use TRACE request method.
  -?|-h|--help             This information.
  -V|--version             Display program version.


簡的測試命令:

#webbench -c 800 -t 60 http://192.168.1.40/index.jsp

800 clients, running 60 sec.


Speed=78170 pages/min, 408272 bytes/sec.

Requests: 78170 susceed, 0 failed.


表示並發800,持續60秒,可以看出一分鐘接受了78170次頁面請求,每秒處理408272 bytes,沒有失敗


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.