aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/zlib.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-07-09 18:21:36 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-07-10 12:26:24 -0700
commit201513a63d65596739a05dbc051916a284194715 (patch)
tree2e3858099338a57802e6365b718ac7f1b2580873 /modules/benchmark/zlib.c
parent314208fd25cbb3f9705d4c2340118b3d57354c61 (diff)
benchmark: add extra fields to result for revision and information
* add an integer revision field * add an extra information string field * zlib benchmark: new revision[1] is 2, so that old results are obviously old, and now the zlib version string will be stored in extra information. [1] as of 6a8e19a14305079b03e45eeb0580a45104f300dd Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/benchmark/zlib.c')
-rw-r--r--modules/benchmark/zlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/benchmark/zlib.c b/modules/benchmark/zlib.c
index 5d7b4d4f..ce6a0048 100644
--- a/modules/benchmark/zlib.c
+++ b/modules/benchmark/zlib.c
@@ -93,6 +93,8 @@ benchmark_zlib(void)
r = benchmark_crunch_for(CRUNCH_TIME, 0, zlib_for, data);
r.result /= 100;
+ r.revision = 2;
+ snprintf(r.extra, 255, "zlib %s (built against: %s)", zlib_version, ZLIB_VERSION);
bench_results[BENCHMARK_ZLIB] = r;
g_free(data);