Motr
M0
|
Data Structures | |
struct | m0_ub_bench |
struct | m0_ub_set |
Macros | |
#define | M0_UB_ASSERT(cond) M0_ASSERT(cond) |
Enumerations | |
enum | { M0_UB_SET_BENCHMARKS_MAX = 32 } |
Functions | |
M0_INTERNAL void | m0_ub_set_print (void) |
M0_INTERNAL int | m0_ub_set_select (const char *name) |
M0_INTERNAL void | m0_ub_set_add (struct m0_ub_set *set) |
static void | timeval_norm (struct timeval *t) |
static void | timeval_diff (const struct timeval *start, const struct timeval *end, struct timeval *diff) |
static double | delay (const struct timeval *start, const struct timeval *end) |
static void | ub_run_one (const struct m0_ub_set *set, struct m0_ub_bench *bench) |
static uint64_t | bw (uint64_t bytes, m0_time_t time) |
static void | results_print (uint32_t round) |
M0_INTERNAL int | m0_ub_run (uint32_t rounds, const char *opts) |
Variables | |
static struct m0_ub_set * | last = NULL |
|
static |
|
static |
M0_INTERNAL int m0_ub_run | ( | uint32_t | rounds, |
const char * | opts | ||
) |
Runs unit sets unit benchmark consists of.
rounds | Number of times every set in benchark has to be run. |
opts | Optional string with benchmark arguments, specified via ‘-o’ CLI option. |
Definition at line 182 of file ub.c.
M0_INTERNAL void m0_ub_set_add | ( | struct m0_ub_set * | set | ) |
M0_INTERNAL void m0_ub_set_print | ( | void | ) |
M0_INTERNAL int m0_ub_set_select | ( | const char * | name | ) |
|
static |
|
static |
|
static |
|
static |