Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
histspeedtest.cxx File Reference
#include "TRandom3.h"
#include <vector>
#include <chrono>
#include <iostream>
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "ROOT/RHist.hxx"
#include "ROOT/RHistBufferedFill.hxx"
Include dependency graph for histspeedtest.cxx:

Classes

struct  BinEdges
 
struct  R7::Dim< T, 1 >
 
struct  R6::Dim< T, 1 >
 
struct  R7::Dim< T, 2 >
 
struct  R6::Dim< T, 2 >
 
struct  R7::Dim< T, 2 >::EE
 
struct  R6::Dim< T, 1 >::EE
 
struct  R7::Dim< T, 1 >::EE
 
struct  R6::Dim< T, 2 >::EE
 
struct  R6::Dim< T, 1 >::II
 
struct  R6::Dim< T, 2 >::II
 
struct  R7::Dim< T, 1 >::II
 
struct  R7::Dim< T, 2 >::II
 
struct  R6::Redirect< 1, double >
 
struct  R6::Redirect< 1, float >
 
struct  R6::Redirect< 2, double >
 
struct  R6::Redirect< 2, float >
 
struct  Timer
 

Namespaces

namespace  R6
 
namespace  R7
 

Macros

#define STATCLASSES   Experimental::RHistStatContent, Experimental::RHistStatUncertainty
 

Functions

template<typename T >
void GenerateInput (std::vector< T > &numbers, double minVal, double maxVal, UInt_t seed)
 
template<int dim, typename type >
const char * GetHist ()
 
template<>
const char * GetHist< 1, double > ()
 
template<>
const char * GetHist< 1, float > ()
 
template<>
const char * GetHist< 2, double > ()
 
template<>
const char * GetHist< 2, float > ()
 
void histspeedtest (size_t iter=1e6, int what=255)
 
int main (int argc, char **argv)
 
std::string MakeTitle (std::string_view version, std::string_view histname, std::string_view title, std::string_view axis)
 
template<typename T , unsigned short kNDim>
void speedtest (size_t count=(size_t)(1e6))
 
template<>
void speedtest< double, 1 > (size_t count)
 
template<>
void speedtest< double, 2 > (size_t count)
 
template<>
void speedtest< float, 1 > (size_t count)
 
template<>
void speedtest< float, 2 > (size_t count)
 

Variables

constexpr unsigned short gRepeat = 2
 
constexpr UInt_t gStride = 32
 
const char * R7::gVersion = "R7"
 
const char * R6::gVersion = "R6"
 

Detailed Description

Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch

Definition in file histspeedtest.cxx.

Macro Definition Documentation

◆ STATCLASSES

#define STATCLASSES   Experimental::RHistStatContent, Experimental::RHistStatUncertainty

Definition at line 51 of file histspeedtest.cxx.

Function Documentation

◆ GenerateInput()

template<typename T >
void GenerateInput ( std::vector< T > &  numbers,
double  minVal,
double  maxVal,
UInt_t  seed 
)

Definition at line 108 of file histspeedtest.cxx.

◆ GetHist()

template<int dim, typename type >
const char * GetHist ( )

◆ GetHist< 1, double >()

template<>
const char * GetHist< 1, double > ( )

Definition at line 145 of file histspeedtest.cxx.

◆ GetHist< 1, float >()

template<>
const char * GetHist< 1, float > ( )

Definition at line 150 of file histspeedtest.cxx.

◆ GetHist< 2, double >()

template<>
const char * GetHist< 2, double > ( )

Definition at line 134 of file histspeedtest.cxx.

◆ GetHist< 2, float >()

template<>
const char * GetHist< 2, float > ( )

Definition at line 139 of file histspeedtest.cxx.

◆ histspeedtest()

void histspeedtest ( size_t  iter = 1e6,
int  what = 255 
)

Definition at line 739 of file histspeedtest.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 751 of file histspeedtest.cxx.

◆ MakeTitle()

std::string MakeTitle ( std::string_view  version,
std::string_view  histname,
std::string_view  title,
std::string_view  axis 
)

Definition at line 123 of file histspeedtest.cxx.

◆ speedtest()

template<typename T , unsigned short kNDim>
void speedtest ( size_t  count = (size_t)(1e6))

◆ speedtest< double, 1 >()

template<>
void speedtest< double, 1 > ( size_t  count)

Definition at line 628 of file histspeedtest.cxx.

◆ speedtest< double, 2 >()

template<>
void speedtest< double, 2 > ( size_t  count)

Definition at line 512 of file histspeedtest.cxx.

◆ speedtest< float, 1 >()

template<>
void speedtest< float, 1 > ( size_t  count)

Definition at line 684 of file histspeedtest.cxx.

◆ speedtest< float, 2 >()

template<>
void speedtest< float, 2 > ( size_t  count)

Definition at line 572 of file histspeedtest.cxx.

Variable Documentation

◆ gRepeat

constexpr unsigned short gRepeat = 2
constexpr

Definition at line 22 of file histspeedtest.cxx.

◆ gStride

constexpr UInt_t gStride = 32
constexpr

Definition at line 78 of file histspeedtest.cxx.