Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jmeter simulates different bandwidths for testing

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Jmeter comes with analog bandwidth settings, provided that the current bandwidth > = the bandwidth to be simulated, for example, the current 4m broadband can only simulate the bandwidth of 4m or less.

Setting method: in the user.properties file, add the following configuration:

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

Above, a bandwidth of Mobile data EDGE: 384kbit/s is defined.

Calculating cps 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:

Ensure you use HttpClient 3.1 or HttpClient 4 implementations

Configure bandwidth by defining the 2 properties above in/ bin/user.properties

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report