7 #ifndef SECP256K1_BENCH_H 8 #define SECP256K1_BENCH_H 17 gettimeofday(&tv, NULL);
18 return tv.tv_usec * 0.000001 + tv.tv_sec;
27 while (y > 0 && y < 100.0) {
36 double min = HUGE_VAL;
39 for (i = 0; i <
count; i++) {
47 if (teardown != NULL) {
68 char** argm = argv + argc;
73 while (argv != NULL && argv != argm) {
74 if (strcmp(*argv, flag) == 0) {
def setup()
Definition: gitian-build.py:8
volatile double sum
Definition: examples.cpp:22
void run_benchmark(char *name, void(*benchmark)(void *), void(*setup)(void *), void(*teardown)(void *), void *data, int count, int iter)
Definition: bench.h:34
void print_number(double x)
Definition: bench.h:21
const char * name
Definition: rest.cpp:39
std::vector< uint8_t > data
Definition: bech32.cpp:10
static int count
Definition: tests.c:45
int have_flag(int argc, char **argv, char *flag)
Definition: bench.h:67
static double gettimedouble(void)
Definition: bench.h:15