开发者

How to reduce the bandwidth size in Jmeter?

开发者 https://www.devze.com 2023-03-19 08:14 出处:网络
I have to test performance of project with 20kbps and 40kbps using Jmeter. I am digging how to set up bandwidth in Jmeter.

I have to test performance of project with 20kbps and 40kbps using Jmeter.

I am digging how to set up bandwidth in Jmeter.

Please help me how to set up it in Jmeter.

开发者_StackOverflow中文版

Will the below configuration control bandwidth thing?

Or any other configuration is there?

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

Thanks.


From here.

To emulate a bandwidth of, say 100kbps, define a CPS of 
( 100 * 1024 ) / 8, i.e. 100kB divided by 8, so, that would be
httpclient.socket.http.cps=12800. 

Then refer to your summary listener for confirmation this is working.


We always used a 3rd party tool to throttle bandwidth during performance testing, as Jmeter doesn't have a good way to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消