MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / ops_per_sec

Method ops_per_sec

src/benchmarks/bench.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

bench.cppFile · 0.80

Calls 6

confidenceIntervalFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected