This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/bench/include/BH/Bench.h

26 lines
426 B
C

#ifndef BH_BENCH_H
#define BH_BENCH_H
typedef struct BH_Bench BH_Bench;
typedef void (*BH_BenchCallback)(BH_Bench *);
#define BH_BENCH_TEST(name) \
static void bench##name(BH_Bench *state)
#define BH_BENCH_ADD(name) \
BH_BenchAdd(#name, bench##name)
void BH_BenchAdd(const char *name,
BH_BenchCallback cb);
int BH_BenchIter(BH_Bench *state);
int BH_BenchRun(void);
#endif /* BH_BENCH_H */