Lines Matching refs:rate

115       rate(0),
153 bool Config::is_rate_mode() const { return (this->rate != 0); }
248 // Called every rate_period when rate mode is being used
251 auto nclients_per_second = worker->rate;
1552 size_t rate, size_t max_samples, Config *config)
1565 rate(rate),
2031 size_t rate, size_t max_samples) {
2033 if (config.is_rate_mode() && nclients > rate) {
2034 rate_report << "Up to " << rate << " client(s) will be created every "
2051 return std::make_unique<Worker>(id, ssl_ctx, nreqs, nclients, rate,
2054 // Here rate is same as client because the rate_timeout callback
2188 -r, --rate=<N>
2189 Specifies the fixed rate at which connections are
2190 created. The rate must be a positive integer,
2192 rate period. The maximum number of connections to be
2193 made is given in -c option. This rate will be
2196 connections per period. When the rate is 0, the program
2198 whatever variable rate it wants. The default value for
2200 --rate-period=<DURATION>
2204 the rate option is not used. The default value for this
2356 {"rate", required_argument, nullptr, 'r'},
2363 {"rate-period", required_argument, &flag, 5},
2514 std::cerr << "-r: the rate at which connections are made "
2518 config.rate = n;
2609 // rate-period
2612 std::cerr << "--rate-period: value error " << optarg << std::endl;
2848 if (config.rate < config.nthreads) {
2849 std::cerr << "-r, -t: the connection rate must be greater than or equal "
2854 if (config.rate > config.nclients) {
2855 std::cerr << "-r, -c: the connection rate must be smaller than or equal "
3126 size_t rate_per_thread = config.rate / config.nthreads;
3127 ssize_t rate_per_thread_rem = config.rate % config.nthreads;
3138 auto rate = rate_per_thread;
3141 ++rate;
3164 workers.push_back(create_worker(i, ssl_ctx, nreqs, nclients, rate,
3190 auto rate = config.rate;
3196 create_worker(0, ssl_ctx, nreqs, nclients, rate, MAX_SAMPLES));