|
librfn
An ad-hoc utility library
|
#include <assert.h>#include <stdio.h>#include <string.h>#include "librfn.h"#include "libbench.h"Go to the source code of this file.
Data Structures | |
| struct | benchmark_fibre_t |
Macros | |
| #define | NUM_CYCLES 1000000 |
| #define | C(x) case BENCHMARK_ ## x: strncpy(lower, #x, sizeof(lower)); break |
Functions | |
| void | benchmark_init (benchmark_results_t *results, fibre_t *wakeup) |
| int | benchmark_run_once (benchmark_results_t *results) |
| const char * | benchmark_get_result (benchmark_results_t *results, int n, stats_t *s) |
| void | benchmark_show_results (benchmark_results_t *results) |
| void | benchmark_show_csv (benchmark_results_t *results, FILE *f) |
| #define C | ( | x | ) | case BENCHMARK_ ## x: strncpy(lower, #x, sizeof(lower)); break |
| #define NUM_CYCLES 1000000 |
Definition at line 31 of file libbench.c.
| const char* benchmark_get_result | ( | benchmark_results_t * | results, |
| int | n, | ||
| stats_t * | s | ||
| ) |
Definition at line 213 of file libbench.c.
| void benchmark_init | ( | benchmark_results_t * | results, |
| fibre_t * | wakeup | ||
| ) |
Definition at line 151 of file libbench.c.
| int benchmark_run_once | ( | benchmark_results_t * | results | ) |
Definition at line 159 of file libbench.c.
| void benchmark_show_csv | ( | benchmark_results_t * | results, |
| FILE * | f | ||
| ) |
Definition at line 236 of file libbench.c.
| void benchmark_show_results | ( | benchmark_results_t * | results | ) |
Definition at line 223 of file libbench.c.
1.8.10