Logo ROOT   6.08/07
Reference Guide
Namespaces | Functions | Variables
speedtest.cxx File Reference
#include "TRandom3.h"
#include <vector>
#include <chrono>
#include <iostream>
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "ROOT/THist.hxx"
#include "ROOT/THistBufferedFill.hxx"
Include dependency graph for speedtest.cxx:

Namespaces

 R6
 
 R7
 

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, int what)
 
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"
 

Function Documentation

◆ GenerateInput()

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

Definition at line 101 of file speedtest.cxx.

◆ GetHist()

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

◆ GetHist< 1, double >()

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

Definition at line 129 of file speedtest.cxx.

◆ GetHist< 1, float >()

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

Definition at line 130 of file speedtest.cxx.

◆ GetHist< 2, double >()

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

Definition at line 126 of file speedtest.cxx.

◆ GetHist< 2, float >()

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

Definition at line 127 of file speedtest.cxx.

◆ histspeedtest()

void histspeedtest ( size_t  iter,
int  what 
)

Definition at line 676 of file speedtest.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 685 of file speedtest.cxx.

◆ MakeTitle()

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

Definition at line 115 of file speedtest.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 587 of file speedtest.cxx.

◆ speedtest< double, 2 >()

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

Definition at line 493 of file speedtest.cxx.

◆ speedtest< float, 1 >()

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

Definition at line 632 of file speedtest.cxx.

◆ speedtest< float, 2 >()

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

Definition at line 542 of file speedtest.cxx.

Variable Documentation

◆ gRepeat

constexpr unsigned short gRepeat = 2

Definition at line 16 of file speedtest.cxx.

◆ gStride

constexpr UInt_t gStride = 32

Definition at line 70 of file speedtest.cxx.