add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 17:47:15 +08:00
parent 8aed85d59a
commit c4da1ec381
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,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 = 6144; attr.stacksize = 4096;
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
return 0; return 0;