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

Method runAllBenchmarks

tools/benchmark/benchmark_runner.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void BenchmarkRunner::runAllBenchmarks() {
34 for (auto& benchmark : benchmarks) {
35 try {
36 runBenchmark( // NOLINT(clang-analyzer-optin.cplusplus.UninitializedObject): spdlog has
37 // an unitialized object.
38 benchmark.get());
39 } catch (std::exception& e) {
40 spdlog::error("Error encountered while running benchmark {}: {}.", benchmark->name,
41 e.what());
42 }
43 }
44}
45
46void BenchmarkRunner::registerBenchmark(const std::string& path) {
47 if (path.ends_with(BENCHMARK_SUFFIX)) {

Callers 1

mainFunction · 0.80

Calls 2

whatMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected