From c8785521f39c3a86454ade890018ca021272c621 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 17 Dec 2017 08:56:46 -0600 Subject: Benchmark results: store threads used Benchmark results store actual number of threads used by benchmark when it was run. Previously, results assumed all available threads were used. Examples: * CPU Fib only uses one * FPU FFT uses 4, 2, or 1 * N-Queens uses 10, 5, 2, or 1 Signed-off-by: Burt P --- modules/benchmark/drawing.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/benchmark/drawing.c') diff --git a/modules/benchmark/drawing.c b/modules/benchmark/drawing.c index 67a2c264..d0905954 100644 --- a/modules/benchmark/drawing.c +++ b/modules/benchmark/drawing.c @@ -22,8 +22,12 @@ void benchmark_gui(void) { + bench_value r = EMPTY_BENCH_VALUE; + shell_view_set_enabled(FALSE); shell_status_update("Running drawing benchmark..."); - - bench_results[BENCHMARK_GUI] = guibench(); + + r.result = guibench(); //TODO: explain in code comments + + bench_results[BENCHMARK_GUI] = r; } -- cgit v1.2.3