mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-12 12:56:44 +01:00
* chore(CppParser): 0, NULL --> nullptr * chore(Crypto): 0, NULL --> nullptr * chore(DNSSD): 0, NULL --> nullptr * chore(Encodings): 0, NULL --> nullptr * chore(CppUnit): Correct indentation. * chore(Foundation): 0, NULL --> nullptr * chore(CMake): Always warn about wrong nullptr usage when compiling with GCC or CLang * chore(Net): 0, NULL --> nullptr * chore(Foundation): 0, NULL --> nullptr * chore(Data): 0, NULL --> nullptr * chore(macOS): 0, NULL --> nullptr * chore(XML): 0, NULL --> nullptr * chore(Zip): 0, NULL --> nullptr * chore(Util): 0, NULL --> nullptr * chore(Net/NetSSL): 0, NULL --> nullptr * chore(Bonjour): 0, NULL --> nullptr * chore(MongoDB, Redis): 0, NULL --> nullptr * chore(Poco): 0, NULL --> nullptr * chore(Win32): 0, NULL --> nullptr * chore(CMake): Only warn about nullptr when verbose warnings are enabled. * Potential fix for code scanning alert no. 1634: Guarded Free Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * chore(Net): Fix warning reported by gitlab. * chore(gitlab CI): attempt to clean to gain disk space on the runner. * chore(gitlab CI): Run build with --parallel 4, correct docker cleanup. --------- Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
#include "benchmark/benchmark.h"
|
|
|
|
#include "benchmark_utils.h"
|
|
#include "queries.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
// Create parse and tokenize benchmarks for TPC-H queries.
|
|
const auto tpch_queries = getTPCHQueries();
|
|
for (const auto& query : tpch_queries) {
|
|
std::string p_name = query.first + "-parse";
|
|
benchmark::RegisterBenchmark(p_name.c_str(), &BM_ParseBenchmark, query.second);
|
|
std::string t_name = query.first + "-tokenize";
|
|
benchmark::RegisterBenchmark(t_name.c_str(), &BM_TokenizeBenchmark, query.second);
|
|
}
|
|
|
|
// Create parse and tokenize benchmarks for all queries in sql_queries array.
|
|
for (unsigned i = 0; i < sql_queries.size(); ++i) {
|
|
const auto& query = sql_queries[i];
|
|
std::string p_name = getQueryName(i) + "-parse";
|
|
benchmark::RegisterBenchmark(p_name.c_str(), &BM_ParseBenchmark, query.second);
|
|
|
|
std::string t_name = getQueryName(i) + "-tokenize";
|
|
benchmark::RegisterBenchmark(t_name.c_str(), &BM_TokenizeBenchmark, query.second);
|
|
}
|
|
|
|
benchmark::Initialize(&argc, argv);
|
|
benchmark::RunSpecifiedBenchmarks();
|
|
}
|