Add Benchmark Sequential
This commit is contained in:
parent
e2b849ed76
commit
6c2f9de87e
|
@ -201,16 +201,17 @@ void *run_benchmark_sequential(void *args) {
|
|||
printf("[BENCHMARK] Global Time Diff: %f\n", global_diff);
|
||||
}
|
||||
|
||||
pthread_t main_thread;
|
||||
static int embenchmark_parallel(int argc, char *argv[]) {
|
||||
run_benchmark_parallel(NULL);
|
||||
case_attr.schedparam.sched_priority = 30;
|
||||
case_attr.stacksize = 16384;
|
||||
PrivTaskCreate(&main_thread, &case_attr, run_benchmark_parallel, NULL);
|
||||
return 0;
|
||||
}
|
||||
pthread_t sequential_thread;
|
||||
static int embenchmark_sequential(void) {
|
||||
case_attr.schedparam.sched_priority = 30;
|
||||
case_attr.stacksize = 16384;
|
||||
PrivTaskCreate(&sequential_thread, &case_attr, run_benchmark_sequential,
|
||||
NULL);
|
||||
PrivTaskCreate(&main_thread, &case_attr, run_benchmark_sequential, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue