網站壓力測試工具 Webbench

webbench最多能夠模擬3萬個併發鏈接去測試網站的負載能力html

Webbench是有名的網站壓力測試工具,它是由 Lionbridge公司(http://www.lionbridge.com)開發。linux

Webbech能測試處在相同硬件上,不一樣服務的性能以及不一樣硬件上同一個服務的運行情況。webBech的標準測試能夠向咱們展現服務器的兩項內容:每秒鐘相應請求數和每秒鐘傳輸數據量。webbench不但能具備便準靜態頁面的測試能力,還能對動態頁面(ASP,PHP,JAVA,CGI)進行測試的能力。還有就是他支持對含有SSL的安全網站例如電子商務網站進行靜態或動態的性能測試。web


[root@crushlinux src]# wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz安全

[root@crushlinux src]# mkdir -p /usr/local/man服務器

[root@crushlinux src]# mkdir -p /usr/local/man/man1併發

[root@crushlinux src]# tar zxvf webbench-1.5.tar.gz ide

[root@crushlinux src]# cd webbench-1.5工具

[root@crushlinux webbench-1.5]# make install性能

[root@crushlinux webbench-1.5]# install -s webbench /usr/local/bin測試

[root@crushlinux webbench-1.5]# install -m 644 webbench.1 /usr/local/man/man1

[root@crushlinux webbench-1.5]# install -d /usr/local/share/doc/webbench

[root@crushlinux webbench-1.5]# install -m 644 debian/copyright /usr/local/share/doc/webbench

[root@crushlinux webbench-1.5]# install -m 644 debian/changelog /usr/local/share/doc/webbench

[root@crushlinux webbench-1.5]# cd ../

[root@crushlinux src]# webbench -c 100 -t 30 http://127.0.0.1/index.html

Webbench - Simple Web Benchmark 1.5

Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.


Benchmarking: GET http://127.0.0.1/index.html

100 clients, running 30 sec.


Speed=784070 pages/min, 9799250 bytes/sec.

Requests: 392035 susceed, 0 failed.

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

分析:每秒鐘響應請求數:784070 pages/min,每秒鐘傳輸數據量9799250 bytes/sec

相關文章
相關標籤/搜索