Home: https://jmeter.apache.org
Requirement:
Command Lind
jmeter -n -t testplan.jmx
Pass parameters into the test scripts
jmeter -Jhost2=www.zzzyy.com -Jhost1=www.jmeter-rules.net
These values can then be read in the test plan using:
${__property(host1) ${__property(host2)}
最多可以模擬30000個連線數,用來測試網站的負載承受能力。
安裝程序:
wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz tar zxvf webbench-1.5.tar.gz cd webbench-1.5 make && make install
使用方法:
webbench -c 500 -t 30 http://127.0.0.1/test.jpg
參數說明:-c 連線數,-t 連線時間
測試結果:
Webbench - Simple Web Benchmark 1.5 Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software. Benchmarking: GET http://127.0.0.1/test.jpg 500 clients, running 30 sec. Speed=3230 pages/min, 11614212 bytes/sec. Requests: 1615 susceed, 0 failed.
Images 0 | ||
---|---|---|
No images to display in the gallery. |