Add Benchmark Sequential

This commit is contained in:
TXuian 2022-12-09 22:31:29 +08:00
parent 51b2739659
commit ecc577117b
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void *run_benchmark_parallel(void *args) {
cur_handle = cur_handle->next;
}
struct timespec abstime;
abstime.tv_sec = 10;
abstime.tv_sec = 60;
PrivSemaphoreObtainWait(&syn_sem, &abstime);
stop_trigger(&g_stop_time);
@ -215,7 +215,7 @@ static int embenchmark_parallel() {
case_attr.schedparam.sched_priority = 30;
case_attr.stacksize = 16384;
PrivTaskCreate(&main_thread, &case_attr, run_benchmark_parallel, NULL);
run_benchmark_parallel(NULL);
// run_benchmark_parallel(NULL);
return 0;
}
static int embenchmark_sequential(void) {