%%
Last Updated:
- [[2021-04-01]]
- [[2020-12-08]]
%%
[[JMeter]]'s implementation of network bandwidth throttling restricts the number of characters per second (cps) sent.
The cps can be correlated with network bandwidth:: [[Characters per second to simulate network bandwidth throttling]]
<!--ID: 1631100131225-->
## Usage
In JMeter, you can control this by adding the following line to your user.properties or jmeter.properties file:
`httpclient.socket.https.cps=19200000`
This sets the “characters per second” and, when set to anything greater than zero, will allow you to simulate different speeds.
Here’s a way to calculate the value to set:
`cps = (target bandwidth in kbps * 1024) / 8`
## Usage in Flood
If you’re running your JMeter test through [[Flood (company)]] there’s no need to modify your properties file. You can simply add this line to the [Advanced Parameters section](https://help.flood.io/en/articles/593297-parameter-substitution) when you’re editing your stream:
`-Jhttpclient.socket.https.cps=19200000`
For more information about this, check out [Apache’s documentation](https://wiki.apache.org/jmeter/Controlling%20Bandwidth%20in%20JMeter%20to%20simulate%20different%20networks).