3#include <benchmark/benchmark.h>
17 using benchmark::Fixture::SetUp;
18 void SetUp(benchmark::State &state)
final
21 std::uniform_real_distribution<>
dis;
23 for (std::size_t i = 0; i <
fNumbers.size(); i++) {
31 for (
auto _ : state) {
32 for (
double number : fNumbers) {
33 benchmark::DoNotOptimize(axes.ComputeGlobalIndex(std::make_tuple(number)));
47 using benchmark::Fixture::SetUp;
48 void SetUp(benchmark::State &state)
final
51 std::uniform_real_distribution<>
dis;
53 for (std::size_t i = 0; i <
fNumbers.size(); i++) {
61 for (
auto _ : state) {
62 for (std::size_t i = 0; i < fNumbers.size(); i += 2) {
63 benchmark::DoNotOptimize(axes.ComputeGlobalIndex(std::make_tuple(fNumbers[i], fNumbers[i + 1])));
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Bin configurations for all dimensions of a histogram.
A regular axis with equidistant bins in the interval .
BENCHMARK_DEFINE_F(RAxes_Regular1, ComputeGlobalIndex)(benchmark
BENCHMARK_REGISTER_F(RAxes_Regular1, ComputeGlobalIndex) -> Range(0, 32768)
ROOT::Experimental::Internal::RAxes axes
ROOT::Experimental::RRegularAxis axis
void SetUp(benchmark::State &state) final
std::vector< double > fNumbers
void SetUp(benchmark::State &state) final
ROOT::Experimental::RRegularAxis axis
std::vector< double > fNumbers
ROOT::Experimental::Internal::RAxes axes