Auto reformatted the base, ref #470

This commit is contained in:
emeric
2024-05-24 23:31:52 +02:00
parent 83b868673c
commit 39941d90a3
460 changed files with 8583 additions and 8514 deletions
+4 -3
View File
@@ -18,6 +18,7 @@
*/
#include <thread>
#include <benchmark/benchmark.h>
#include "SubsonicResponse.hpp"
@@ -47,7 +48,7 @@ namespace lms::api::subsonic::benchs
return response;
}
}
} // namespace
static void BM_SubsonicResponse_generate(benchmark::State& state)
{
@@ -59,7 +60,7 @@ namespace lms::api::subsonic::benchs
}
}
template <ResponseFormat responseFormat>
template<ResponseFormat responseFormat>
static void BM_SubsonicResponse_serialize(benchmark::State& state)
{
const Response response{ generateFakeResponse() };
@@ -74,6 +75,6 @@ namespace lms::api::subsonic::benchs
BENCHMARK(BM_SubsonicResponse_generate)->Threads(1)->Threads(std::thread::hardware_concurrency());
BENCHMARK(BM_SubsonicResponse_serialize<ResponseFormat::json>);
BENCHMARK(BM_SubsonicResponse_serialize<ResponseFormat::xml>);
}
} // namespace lms::api::subsonic::benchs
BENCHMARK_MAIN();