Barrelfish
|
Bench library initialization. More...
Functions | |
void | bench_init (void) |
Initialize benchmarking library. More... | |
cycles_t | bench_tscoverhead (void) |
cycles_t | bench_time_diff (cycles_t tsc_start, cycles_t tsc_end) |
computes the differences of two time stamps with respecting overflow More... | |
cycles_t | bench_avg (cycles_t *array, size_t len) |
Compute averages. More... | |
cycles_t | bench_variance (cycles_t *array, size_t len) |
Compute variance. More... | |
void | bench_stddev (cycles_t *array, size_t len, uint8_t correction, cycles_t *ret_avg, cycles_t *ret_stddev) |
computes the standard deviation s^2 of the sample data More... | |
cycles_t | bench_min (cycles_t *array, size_t len) |
Compute minimum. More... | |
cycles_t | bench_max (cycles_t *array, size_t len) |
Compute maximum. More... | |
Bench library initialization.
Compute averages.
If certain datapoints should be ignored, they should be marked with #BENCH_IGNORE_WATERMARK
void bench_init | ( | void | ) |
Initialize benchmarking library.
Compute maximum.
If certain datapoints should be ignored, they should be marked with #BENCH_IGNORE_WATERMARK
Compute minimum.
If certain datapoints should be ignored, they should be marked with #BENCH_IGNORE_WATERMARK
void bench_stddev | ( | cycles_t * | array, |
size_t | len, | ||
uint8_t | correction, | ||
cycles_t * | ret_avg, | ||
cycles_t * | ret_stddev | ||
) |
computes the standard deviation s^2 of the sample data
array | array of data to analyze |
len | size of the array |
correction | apply Bessel's correction (using N-1 instead of N) |
ret_avg | returns the average of the sample |
ret_stddev | returns the standard deviation squared of the sample |
discard some initiali observations
computes the differences of two time stamps with respecting overflow
This function also accounts for the overhead when taking timestamps
tsc_start | timestamp of start |
tsc_end | timestamp of end |
cycles_t bench_tscoverhead | ( | void | ) |
Return the measured tsc overhead