add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 19:11:27 +08:00
parent 2d6bb4b744
commit 21eee47631
2 changed files with 8 additions and 8 deletions

View File

@ -53,12 +53,12 @@ BenchmarkPair bmh_list[] = {
{.handle = &qrtest_handle, .name = "qrtest", .time = 0}, //
{.handle = &combined_handle, .name = "combined", .time = 0}, //
// {.handle = &slre_handle, .name = "slre", .time = 0}, //
{.handle = &libst_handle, .name = "libst", .time = 0}, //
{.handle = &statemate_handle, .name = "statemate", .time = 0}, //
{.handle = &tarfind_handle, .name = "tarfind", .time = 0}, //
{.handle = &libud_handle, .name = "libud", .time = 0}, //
// {.handle = &libwikisort_handle, .name = "libwikisort", .time = 0}, //
{.handle = NULL, .name = "", .time = 0}, //
{.handle = &libst_handle, .name = "libst", .time = 0}, //
{.handle = &statemate_handle, .name = "statemate", .time = 0}, //
{.handle = &tarfind_handle, .name = "tarfind", .time = 0}, //
{.handle = &libud_handle, .name = "libud", .time = 0}, //
{.handle = &libwikisort_handle, .name = "libwikisort", .time = 0}, //
{.handle = NULL, .name = "", .time = 0}, //
};
float benchmark_time[25];
@ -143,7 +143,7 @@ pthread_t benchmark_task;
static int embenchmark(void) {
pthread_attr_t attr;
attr.schedparam.sched_priority = 25;
attr.stacksize = 4096;
attr.stacksize = 5120;
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
// run_benchmark(NULL);

View File

@ -10,7 +10,7 @@
* See the Mulan PSL v2 for more details.
*/
__STACKSIZE__ = 4096;
__STACKSIZE__ = 5120;
OUTPUT_ARCH( "riscv" )
MEMORY
{