How To Simulate Different Network Speeds In JMeter
By default JMeter can send the requests as fast as it can. But it's not a realistic scenario, real users don't choke the server/application with non-stop download. In real time, users may access the application with different network speeds - meaning connection speed will vary for each user.
So it's always good to test your application under different network bandwidths for better performance. If you are testing a mobile application, it is recommended to test the app with different network speeds as the mobile users access the app with cellular network.
This article can help you to simulate and control virtual users bandwidth in JMeter.
So it's always good to test your application under different network bandwidths for better performance. If you are testing a mobile application, it is recommended to test the app with different network speeds as the mobile users access the app with cellular network.
This article can help you to simulate and control virtual users bandwidth in JMeter.
Simulating Different Network Speeds Using JMeter
JMeter does give you the option to limit outgoing bandwidth in order to simulate different network speeds. The bandwidth can be controlled through these two properties in jmeter.properties file:- httpclient.socket.http.cps=0
- httpclient.socket.https.cps=0
Formula To Calculate CPS Value
cps = (target bandwidth in kbps * 1024) / 8
For example, to simulate LTE cellular network speed (which is 150Mbs/second, downstream), the relevant CPS value would be 19200000.
Tip: Once the changes are done, restart the JMeter to pick these properties up.
Happy Learning !!!
Comments
Post a Comment