| 110 | }; |
| 111 | |
| 112 | BenchMark::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 | |
| 119 | BenchMark::~BenchMark() {} |
| 120 |
nothing calls this directly
no outgoing calls
no test coverage detected