Category:
JMeter
In Apache JMeter, we can simulate network bandwidth very easily.
Following are the steps to simulate network bandwidth:
Open ‘jmeter.properties’ file in notepad (location: apache-jmeter/bin)
Search ‘cps’ (characters per second) you will find
Define characters per second > 0 to emulate slow connections
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0
Change cps value as per your need
cps = rb*128 (rb= Required Bandwidth)
cps = (target bandwidth in kbps * 1024) / 8
Bandwidth | cps Value |
GPRS | 21888 |
3G | 2688000 |
4G | 19200000 |
WIFI 802.11a/g | 6912000 |
ADSL | 1024000 |
100 Mb LAN | 12800000 |
Gigabit Lan | 128000000 |