ConstantRate
Send request with same rate for the whole test.
field | data type | Description |
---|---|---|
countPerSec | uint32 | Constant rate to maintain for the duration of the test |
Example
extern crate overload_http;
extern crate serde_json;
use overload_http::RateSpecEnum;
let req = r###"
{
"ConstantRate": {
"countPerSec": 10
}
}
"###;
let result = serde_json::from_str::<RateSpecEnum>(req);
assert!(result.is_ok());
If the test run for 5 minutes, it'll generate 10 QPS for the whole 5 minute.