aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/drawing.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-12-17 08:56:46 -0600
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-02-27 07:41:51 -0800
commitc8785521f39c3a86454ade890018ca021272c621 (patch)
tree4df2fa40ca918cb26460d07939136bef6a63ef13 /modules/benchmark/drawing.c
parent8fb9ed49987ca006495891f04e5250496d6e00f4 (diff)
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 <pburt0@gmail.com>
Diffstat (limited to 'modules/benchmark/drawing.c')
-rw-r--r--modules/benchmark/drawing.c8
1 files changed, 6 insertions, 2 deletions
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;
}