網站效能Web壓力測試工具webbench

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   使用   ar   strong   div   

webbench最多可以類比3萬個並發串連去測試網站的負載能力,個人感覺要比Apache內建的ab壓力測試工具好,安裝使用也特別方便。

1、適用系統:Linux

2、編譯安裝:

wget http://www.ha97.com/code/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5makemake install

如果出現編譯錯誤

[[email protected]]# makecc -Wall -ggdb -W -O   -c -o webbench.o webbench.cwebbench.c: In function ‘alarm_handler’:webbench.c:77: warning: unused parameter ’signal’cc -Wall -ggdb -W -O   -o webbench webbench.octags *.c/bin/sh: ctags: command not foundmake: [tags] Error 127 (ignored)

是沒安裝ctags組件,使用yum -y install ctags,解決問題

install -s webbench /usr/local/bininstall -m 644 webbench.1 /usr/local/man/man1install: cannot create regular file `/usr/local/man/man1′: No such file or directorymake: *** [install] Error 1

解決方案
mkdir -m 644 -p /usr/local/man/man1

3、使用:

webbench -c 1000 -t 30 http://127.0.0.1/phpinfo.php

參數說明:-c表示並發數,-t表示時間(秒)

4、測試結果樣本:

Webbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://127.0.0.1/test.jpg500 clients, running 30 sec.Speed=3230 pages/min, 11614212 bytes/sec.Requests: 1615 susceed, 0 failed.

 

網站效能Web壓力測試工具webbench

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.