benchmark_toolbox: hanoi cpu test

This commit is contained in:
souldbminersmwc
2026-06-11 19:01:15 -04:00
parent 464b7d8fff
commit 65eb5f8903
4 changed files with 326 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint64_t iters;
uint64_t mismatches;
int threads;
int running;
} cpu_stress_status_t;
void cpu_stress_start(int mode);
void cpu_stress_stop(void);
int cpu_stress_running(void);
void cpu_stress_get(cpu_stress_status_t *out);
#ifdef __cplusplus
}
#endif