jmeter 模拟网络带宽的设置

转自:http://wiki.apache.org/jmeter/Controlling%20Bandwidth%20in%20JMeter%20to%20simulate%20different%20networks



How to simulate network bandwidth in JMeter?

JMeter let's you simulate network bandwidth very easily.

Where to define the network bandwidth?

In jmeter.properties we can read:


# Define characters per second > 0 to emulate slow connections
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0

How to modify network bandwith?

cps values are calculated with this formula :

  • cps = (target bandwidth in kbps * 1024) / 8

Some examples:

Network bandwidth

cps value

Mobile data GPRS : 171 kbit/s

21888

Mobile data EDGE : 384 kbit/s

49152

Mobile data HSPA : 14,4 Mbp/s

1843200

Mobile data HSPA+ : 21 Mbp/s

2688000

Mobile data DC-HSPA+ : 42 Mbps

5376000

Mobile data LTE : 150 Mbp/s

19200000

WIFI 802.11a/g : 54 Mbit/s

6912000

WIFI 802.11n : 600 Mbit/s

76800000

Ethernet LAN ; 10 Mbit/s

1280000

Fast Ethernet : 100 Mbit/s

12800000

Gigabit Ethernet : 1 Gbit/s

128000000

10 Gigabit Ethernet : 10 Gbit/s

1280000000

100 Gigabit Ethernet : 100 Gbit/s

12800000000

WAN modems V.92 modems : 56 kbit/s

7168

ADSL : 8 Mbit/s

1024000

ADSL2 : 12 Mbit/s

1536000

ADSL2+ : 24 Mbit/s

3072000

Configuration summary:

  1. Ensure you use HttpClient 3.1 or HttpClient 4 implementations

  2. Configure bandwidth by defining the 2 properties above in <jmeter home>/bin/user.properties

Author:

Antonio Gomes Rodrigues
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值