MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / registerBenchmark

Method registerBenchmark

tools/benchmark/benchmark_runner.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void BenchmarkRunner::registerBenchmark(const std::string& path) {
47 if (path.ends_with(BENCHMARK_SUFFIX)) {
48 auto benchmark = std::make_unique<Benchmark>(path, database.get(), *config);
49 spdlog::info("Register benchmark {}", benchmark->name);
50 benchmarks.push_back(std::move(benchmark));
51 }
52}
53
54double BenchmarkRunner::computeAverageOfLastRuns(const double* runTimes, const int& len,
55 const int& lastRunsToAverage) {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected