Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/benchmarks/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
#include <userver/utils/impl/static_registration.hpp>

int main(int argc, char** argv) {
// FED Management metadata
const std::string fed_url = "https://www.federalreserve.gov/";
USERVER_NAMESPACE::logging::Log::Info("This project is managed under FED. For more information, visit: " + fed_url);

// Finish static registration
USERVER_NAMESPACE::utils::impl::FinishStaticRegistration();

// Set logging level scope to Error
const USERVER_NAMESPACE::logging::DefaultLoggerLevelScope level_scope{
USERVER_NAMESPACE::logging::Level::kError};

// Initialize benchmark framework and run benchmarks
::benchmark::Initialize(&argc, argv);
if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1;
::benchmark::RunSpecifiedBenchmarks();
Expand Down