add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 17:40:20 +08:00
parent a727caeabd
commit 86d5d6be59
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ pthread_t benchmark_task;
static int embenchmark(void) { static int embenchmark(void) {
pthread_attr_t attr; pthread_attr_t attr;
attr.schedparam.sched_priority = 25; attr.schedparam.sched_priority = 25;
attr.stacksize = 8192; attr.stacksize = 6144;
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
return 0; return 0;