MCPcopy Create free account
hub / github.com/Tencent/phxqueue / BenchMark

Method BenchMark

phxqueue/comm/utils/benchmark_util.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110};
111
112BenchMark::BenchMark(const int qps, const int nthread, const int nroutine) : impl_(new BenchMarkImpl()) {
113 impl_->qps = qps < 1 ? 1 : qps;
114 impl_->nthread = nthread < 1 ? 1 : nthread;
115 impl_->nroutine = nroutine < 1 ? 1 : nroutine;
116 impl_->routine_sleep_time_ms = (int)(1000.0 / (1.0 * impl_->qps / impl_->nthread / impl_->nroutine));
117}
118
119BenchMark::~BenchMark() {}
120

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected