12#include "benchmark/benchmark.h"
26 std::srand(std::time(
nullptr));
29 for (
auto i = 0;
i < N;
i++) {
30 int randomPadID = std::rand() * N;
31 digits.emplace_back(dummydetID, randomPadID, dummyadc, 0);
39 std::vector<o2::MCCompLabel> labels;
40 int dummyEventID{1000};
41 std::srand(std::time(
nullptr));
44 for (
auto i = 0;
i < N;
i++) {
45 int randomTrackID = std::rand() * N;
46 labels.emplace_back(randomTrackID, dummyEventID, dummysrcID,
false);
54static void benchDigitMerging(benchmark::State&
state)
61 for (
auto _ :
state) {
62 mergingFunction(
digits, labels);
68static void mergingFunctionIndices(benchmark::internal::Benchmark*
b)
77BENCHMARK(benchDigitMerging)->Apply(mergingFunctionIndices);
std::vector< MergingFunctionType > mergingFunctions()
BENCHMARK(benchDigitMerging) -> Apply(mergingFunctionIndices)
std::vector< Digit > createDigits(int N)
std::vector< o2::MCCompLabel > createLabels(int N)
MCH digit implementation.
GLboolean GLboolean GLboolean b
std::vector< Digit > digits