add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 21:21:35 +08:00
parent 23ff23bad2
commit 30f537ef10
1 changed files with 24 additions and 24 deletions

View File

@ -47,10 +47,10 @@ BenchmarkPair bmh_list[] = {
{.handle = &libminver_handle, .name = "libminver", .time = 0}, // {.handle = &libminver_handle, .name = "libminver", .time = 0}, //
{.handle = &nobody_handle, .name = "nbody", .time = 0}, // {.handle = &nobody_handle, .name = "nbody", .time = 0}, //
{.handle = &nettle_aes_handle, .name = "nettle-aes", .time = 0}, // {.handle = &nettle_aes_handle, .name = "nettle-aes", .time = 0}, //
{.handle = &nettle_sha256_handle, .name = "nettle-sha256", .time = 0}, // // {.handle = &nettle_sha256_handle, .name = "nettle-sha256", .time = 0}, //
{.handle = &libnsichneu_handle, .name = "libnsichneu", .time = 0}, // // {.handle = &libnsichneu_handle, .name = "libnsichneu", .time = 0}, //
{.handle = &picojpeg_handle, .name = "picojpeg", .time = 0}, // // {.handle = &picojpeg_handle, .name = "picojpeg", .time = 0}, //
{.handle = &primecount_handle, .name = "primecount", .time = 0}, // // {.handle = &primecount_handle, .name = "primecount", .time = 0}, //
{.handle = &qrtest_handle, .name = "qrtest", .time = 0}, // {.handle = &qrtest_handle, .name = "qrtest", .time = 0}, //
{.handle = &combined_handle, .name = "combined", .time = 0}, // {.handle = &combined_handle, .name = "combined", .time = 0}, //
{.handle = &slre_handle, .name = "slre", .time = 0}, // {.handle = &slre_handle, .name = "slre", .time = 0}, //
@ -141,7 +141,7 @@ void *run_benchmark(void *args) {
case_attr.schedparam.sched_priority = 25; case_attr.schedparam.sched_priority = 25;
case_attr.stacksize = 16384; case_attr.stacksize = 16384;
PrivSemaphoreCreate(&syn_sem, 0, -20); PrivSemaphoreCreate(&syn_sem, 0, -17);
PrivMutexCreate(&case_mu, 0); PrivMutexCreate(&case_mu, 0);
benchmark_handle *cur_handle = head.next; benchmark_handle *cur_handle = head.next;