add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 21:26:50 +08:00
parent ad1387cc19
commit 7837d746ed
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 = &nobody_handle, .name = "nbody", .time = 0}, //
{.handle = &nettle_aes_handle, .name = "nettle-aes", .time = 0}, //
// {.handle = &nettle_sha256_handle, .name = "nettle-sha256", .time = 0}, //
// {.handle = &libnsichneu_handle, .name = "libnsichneu", .time = 0}, //
// {.handle = &picojpeg_handle, .name = "picojpeg", .time = 0}, //
// {.handle = &primecount_handle, .name = "primecount", .time = 0}, //
{.handle = &nettle_sha256_handle, .name = "nettle-sha256", .time = 0}, //
{.handle = &libnsichneu_handle, .name = "libnsichneu", .time = 0}, //
{.handle = &picojpeg_handle, .name = "picojpeg", .time = 0}, //
{.handle = &primecount_handle, .name = "primecount", .time = 0}, //
{.handle = &qrtest_handle, .name = "qrtest", .time = 0}, //
{.handle = &combined_handle, .name = "combined", .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.stacksize = 16384;
PrivSemaphoreCreate(&syn_sem, 0, -16);
PrivSemaphoreCreate(&syn_sem, 0, -20);
PrivMutexCreate(&case_mu, 0);
benchmark_handle *cur_handle = head.next;