| 234 | } |
| 235 | |
| 236 | ConfidenceInterval ops_per_sec() |
| 237 | { |
| 238 | std::vector<double> ops; |
| 239 | ops.reserve(times.size()); |
| 240 | for (const auto &iter_times : times) |
| 241 | { |
| 242 | double total_time = std::accumulate(iter_times.begin(), iter_times.end(), 0.0) / 1000.0; |
| 243 | ops.push_back(iter_times.size() / total_time); |
| 244 | } |
| 245 | return confidenceInterval(ops); |
| 246 | } |
| 247 | |
| 248 | private: |
| 249 | // vector of times for each iteration |