Add more benchmarks, add subcount option

This commit is contained in:
2025-10-13 11:17:11 +03:00
parent 35b2e71753
commit 3f7b872f0f
20 changed files with 1479 additions and 22 deletions

View File

@@ -2,6 +2,9 @@
#define BH_BENCH_H
#include <BH/Common.h>
typedef struct BH_Bench BH_Bench;
typedef void (*BH_BenchCallback)(BH_Bench *);
@@ -21,6 +24,10 @@ void BH_BenchAdd(const char *name,
int BH_BenchIter(BH_Bench *state);
void BH_BenchSubcount(BH_Bench *state,
size_t count);
int BH_BenchRun(void);