Motr  M0
m0_ub_bench Struct Reference

#include <ub.h>

Collaboration diagram for m0_ub_bench:
Collaboration graph

Data Fields

const char * ub_name
 
uint32_t ub_iter
 
uint32_t ub_block_size
 
uint32_t ub_blocks_per_op
 
void(* ub_round )(int iter)
 
void(* ub_init )(void)
 
void(* ub_fini )(void)
 
double ub_total
 
m0_time_t ub_total_etime
 
double ub_square
 
double ub_min
 
double ub_max
 

Detailed Description

Structure to define a unit benchmark.

Definition at line 42 of file ub.h.

Field Documentation

◆ ub_block_size

uint32_t ub_block_size

Definition at line 47 of file ub.h.

◆ ub_blocks_per_op

uint32_t ub_blocks_per_op

Definition at line 48 of file ub.h.

◆ ub_fini

void(* ub_fini) (void)

Function to free benchmark.

Definition at line 54 of file ub.h.

◆ ub_init

void(* ub_init) (void)

Function to prepare benchmark.

Definition at line 52 of file ub.h.

◆ ub_iter

uint32_t ub_iter

Number of iterations the benchmarks has to be run.

Definition at line 46 of file ub.h.

◆ ub_max

double ub_max

Maximum number of seconds spent in ->ub_round().

Definition at line 66 of file ub.h.

◆ ub_min

double ub_min

Minimum number of seconds spent in ->ub_round().

Definition at line 64 of file ub.h.

◆ ub_name

const char* ub_name

Name of a benchmark, has to be unique in current unit set.

Definition at line 44 of file ub.h.

◆ ub_round

void(* ub_round) (int iter)

Pointer to the benchmark function.

Definition at line 50 of file ub.h.

◆ ub_square

double ub_square

Total squared seconds.

Definition at line 62 of file ub.h.

◆ ub_total

double ub_total

Total seconds elapsed on all ->ub_round()s.

Definition at line 59 of file ub.h.

◆ ub_total_etime

m0_time_t ub_total_etime

Definition at line 60 of file ub.h.


The documentation for this struct was generated from the following file: