Add Benchmark Sequential

This commit is contained in:
TXuian 2022-12-09 20:59:17 +08:00
parent 0672a44fd2
commit 1b8b219c2b
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ extern benchmark_handle statemate_handle;
extern benchmark_handle tarfind_handle;
extern benchmark_handle libud_handle;
extern benchmark_handle libwikisort_handle;
extern long ShowTask();
typedef struct BenchmarkPair {
benchmark_handle *handle;
@ -113,6 +114,7 @@ void *run_one_example(void *arg) {
clock_t start_time = 0, end_time = 0;
handle->handle.benchmark_func->initialise_benchmark();
handle->handle.benchmark_func->warm_caches(WARMUP_HEAT);
ShowTask();
start_trigger(&start_time);
volatile int result = handle->handle.benchmark_func->benchmark();
stop_trigger(&end_time);