From 201513a63d65596739a05dbc051916a284194715 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 9 Jul 2019 18:21:36 -0500 Subject: 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 --- includes/benchmark.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/benchmark.h b/includes/benchmark.h index 50f8da4b..04182944 100644 --- a/includes/benchmark.h +++ b/includes/benchmark.h @@ -35,9 +35,11 @@ typedef struct { double result; double elapsed_time; int threads_used; + int revision; + char extra[256]; /* no \n, ; or | */ } bench_value; -#define EMPTY_BENCH_VALUE {-1.0f,0,0} +#define EMPTY_BENCH_VALUE {-1.0f,0,0,-1,""} char *bench_value_to_str(bench_value r); bench_value bench_value_from_str(const char* str); -- cgit v1.2.3