Project
Loading...
Searching...
No Matches
bench_Raw.cxx File Reference

Benchmark MID raw data decoder. More...

#include "benchmark/benchmark.h"
#include <vector>
#include "Framework/Logger.h"
#include "CommonDataFormat/InteractionRecord.h"
#include "DetectorsRaw/RawFileReader.h"
#include "DPLUtils/RawParser.h"
#include "DataFormatsMID/ColumnData.h"
#include "MIDBase/DetectorParameters.h"
#include "MIDRaw/Decoder.h"
#include "MIDRaw/Encoder.h"
#include "MIDRaw/LinkDecoder.h"

Go to the source code of this file.

Functions

o2::mid::ColumnData getColData (uint8_t deId, uint8_t columnId, uint16_t nbp=0, uint16_t bp1=0, uint16_t bp2=0, uint16_t bp3=0, uint16_t bp4=0)
 
std::vector< uint8_t > generateTestData (size_t nTF, size_t nDataInTF, size_t nColDataInEvent, size_t nLinks=o2::mid::crateparams::sNGBTs)
 
 BENCHMARK (BM_LinkDecoder) -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond)
 
 BENCHMARK (BM_Decoder) -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond)
 
 BENCHMARK_MAIN ()
 

Detailed Description

Benchmark MID raw data decoder.

Author
Diego Stocco <Diego.Stocco at cern.ch>
Date
17 March 2018

Definition in file bench_Raw.cxx.

Function Documentation

◆ BENCHMARK() [1/2]

BENCHMARK ( BM_Decoder  ) -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond)

◆ BENCHMARK() [2/2]

BENCHMARK ( BM_LinkDecoder  ) -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond)

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ generateTestData()

std::vector< uint8_t > generateTestData ( size_t  nTF,
size_t  nDataInTF,
size_t  nColDataInEvent,
size_t  nLinks = o2::mid::crateparams::sNGBTs 
)

Definition at line 42 of file bench_Raw.cxx.

◆ getColData()

o2::mid::ColumnData getColData ( uint8_t  deId,
uint8_t  columnId,
uint16_t  nbp = 0,
uint16_t  bp1 = 0,
uint16_t  bp2 = 0,
uint16_t  bp3 = 0,
uint16_t  bp4 = 0 
)

Definition at line 29 of file bench_Raw.cxx.