Project
Loading...
Searching...
No Matches
benchmark_ASoA.cxx File Reference
#include "Framework/ASoA.h"
#include "Framework/TableBuilder.h"
#include "Framework/AnalysisDataModel.h"
#include <benchmark/benchmark.h>
#include <random>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::aod
 
namespace  o2::aod::test
 

Functions

 o2::aod::test::DECLARE_SOA_COLUMN_FULL (X, x, float, "x")
 
 o2::aod::test::DECLARE_SOA_COLUMN_FULL (Y, y, float, "y")
 
 o2::aod::test::DECLARE_SOA_COLUMN_FULL (Z, z, float, "z")
 
 o2::aod::test::DECLARE_SOA_DYNAMIC_COLUMN (Sum, sum, [](float x, float y) { return x+y;})
 
 o2::aod::test::DECLARE_SOA_DYNAMIC_COLUMN (SumFreeArgs, sumFreeArgs, [](float x, float y, float freeArg) { return x+y+freeArg;})
 
 o2::aod::DECLARE_SOA_TABLE (TestTable, "AOD", "TESTTBL", test::X, test::Y, test::Z, test::Sum< test::X, test::Y >)
 
 BENCHMARK (BM_SimpleForLoop) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_TrackForLoop) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_WholeTrackForLoop) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_TrackForPhi) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_SimpleForLoopWithOp) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoASimpleForLoop) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoASimpleForLoopWithOp) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoADynamicColumnPresent) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoADynamicColumnPresentGetGetterByLabel) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoADynamicColumnCall) -> Range(8, 8<< maxrange)
 
 BENCHMARK (BM_ASoADynamicColumnCallGetGetterByLabel) -> Range(8, 8<< maxrange)
 
 BENCHMARK_MAIN ()
 

Variables

constexpr unsigned int maxrange = 15
 

Function Documentation

◆ BENCHMARK() [1/11]

BENCHMARK ( BM_ASoADynamicColumnCall  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [2/11]

BENCHMARK ( BM_ASoADynamicColumnCallGetGetterByLabel  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [3/11]

BENCHMARK ( BM_ASoADynamicColumnPresent  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [4/11]

BENCHMARK ( BM_ASoADynamicColumnPresentGetGetterByLabel  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [5/11]

BENCHMARK ( BM_ASoASimpleForLoop  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [6/11]

BENCHMARK ( BM_ASoASimpleForLoopWithOp  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [7/11]

BENCHMARK ( BM_SimpleForLoop  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [8/11]

BENCHMARK ( BM_SimpleForLoopWithOp  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [9/11]

BENCHMARK ( BM_TrackForLoop  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [10/11]

BENCHMARK ( BM_TrackForPhi  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK() [11/11]

BENCHMARK ( BM_WholeTrackForLoop  ) -> Range(8, 8<< maxrange)

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

Variable Documentation

◆ maxrange

constexpr unsigned int maxrange = 15
constexpr

Definition at line 41 of file benchmark_ASoA.cxx.