高並發測試工具webbench

來源:互聯網
上載者:User

標籤:down   blog   ctags   代碼   sim   data      .com   span   

1.簡單介紹

webbench最多能夠類比3萬個並發串連去測試server的負載能力。編譯和配置簡單,僅基於TCP協議上對server進行測試。

Webbench也是開放原始碼。從代碼上看,每一個client都fork出一個進程進行測試。僅在TCP協議層對server測試。並未涉及HTTP協議。

2.安裝

原始碼下載: http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make

註:假設安裝過程中出現/bin/sh: ctags: command not found

則需安裝ctags。:wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz

3.測試

1分鐘1000個client測試。執行命令:./webbench -c 1000 -t 60

4.測試報告
[[email protected] webbench-1.5]# ./webbench -c 200 http://172.31.186.100:8080/Map/index.jspWebbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://172.31.186.100:8080/Map/index.jsp200 clients, running 30 sec.Speed=246578 pages/min, 27904904 bytes/sec.Requests: 123079 susceed, 210 failed.

[[email protected] webbench-1.5]# ./webbench -c 200 http://172.31.186.100:8080/Map/index.jsp
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://172.31.186.100:8080/Map/index.jsp
200 clients, running 30 sec.

Speed=246578 pages/min, 27904904 bytes/sec.
Requests: 123079 susceed, 210 failed.

高並發測試工具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.