Add Benchmark Sequential
This commit is contained in:
parent
0672a44fd2
commit
1b8b219c2b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue