Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Macros | Typedefs | Functions
prevector.cpp File Reference
#include <prevector.h>
#include <bench/bench.h>
#include <serialize.h>
#include <streams.h>
#include <type_traits>
#include <vector>
Include dependency graph for prevector.cpp:

Go to the source code of this file.

Classes

struct  nontrivial_t
 

Macros

#define PREVECTOR_TEST(name)
 

Typedefs

typedef unsigned char trivial_t
 

Functions

template<typename T >
static void PrevectorDestructor (benchmark::Bench &bench)
 
template<typename T >
static void PrevectorClear (benchmark::Bench &bench)
 
template<typename T >
static void PrevectorResize (benchmark::Bench &bench)
 
template<typename T >
static void PrevectorDeserialize (benchmark::Bench &bench)
 
template<typename T >
static void PrevectorFillVectorDirect (benchmark::Bench &bench)
 
template<typename T >
static void PrevectorFillVectorIndirect (benchmark::Bench &bench)
 

Macro Definition Documentation

◆ PREVECTOR_TEST

#define PREVECTOR_TEST (   name)
Value:
static void Prevector##name##Nontrivial(benchmark::Bench& bench) \
{ \
Prevector##name<nontrivial_t>(bench); \
} \
BENCHMARK(Prevector##name##Nontrivial, benchmark::PriorityLevel::HIGH); \
static void Prevector##name##Trivial(benchmark::Bench& bench) \
{ \
Prevector##name<trivial_t>(bench); \
} \
BENCHMARK(Prevector##name##Trivial, benchmark::PriorityLevel::HIGH);
Main entry point to nanobench's benchmarking facility.
Definition: nanobench.h:627
@ HIGH
Definition: bench.h:48
const char * name
Definition: rest.cpp:49

Definition at line 111 of file prevector.cpp.

Typedef Documentation

◆ trivial_t

typedef unsigned char trivial_t

Definition at line 22 of file prevector.cpp.

Function Documentation

◆ PrevectorClear()

template<typename T >
static void PrevectorClear ( benchmark::Bench bench)
static

Definition at line 38 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorDeserialize()

template<typename T >
static void PrevectorDeserialize ( benchmark::Bench bench)
static

Definition at line 64 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorDestructor()

template<typename T >
static void PrevectorDestructor ( benchmark::Bench bench)
static

Definition at line 27 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorFillVectorDirect()

template<typename T >
static void PrevectorFillVectorDirect ( benchmark::Bench bench)
static

Definition at line 86 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorFillVectorIndirect()

template<typename T >
static void PrevectorFillVectorIndirect ( benchmark::Bench bench)
static

Definition at line 99 of file prevector.cpp.

Here is the call graph for this function:

◆ PrevectorResize()

template<typename T >
static void PrevectorResize ( benchmark::Bench bench)
static

Definition at line 51 of file prevector.cpp.

Here is the call graph for this function: