add benchmark to app. TODO: test benchmark.
This commit is contained in:
parent
ad1387cc19
commit
7837d746ed
|
@ -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, -16);
|
PrivSemaphoreCreate(&syn_sem, 0, -20);
|
||||||
PrivMutexCreate(&case_mu, 0);
|
PrivMutexCreate(&case_mu, 0);
|
||||||
|
|
||||||
benchmark_handle *cur_handle = head.next;
|
benchmark_handle *cur_handle = head.next;
|
||||||
|
|
Loading…
Reference in New Issue