From: Siddhesh Poyarekar Date: Sat, 11 Aug 2018 13:15:03 +0000 (+0530) Subject: [benchtests] Add mandatory attributes to workload tests X-Git-Tag: glibc-2.29~542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44727aec4fc260331cf52fa752223dcf39607a0a;p=thirdparty%2Fglibc.git [benchtests] Add mandatory attributes to workload tests Add the duration and iterations attributes to the workloads tests to make the json schema parser happy * benchtests/bench-skeleton.c (main): Add duration and iterations attributes. --- diff --git a/ChangeLog b/ChangeLog index 64ebb9fbfb5..9c7bb73ff82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-08-11 Siddhesh Poyarekar + + * benchtests/bench-skeleton.c (main): Add duration and + iterations attributes. + 2018-08-10 Paul Eggert regex: Gnulib unibyte RRI uses bytes not chars diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c index 666212a64fd..4fc1827ca57 100644 --- a/benchtests/bench-skeleton.c +++ b/benchtests/bench-skeleton.c @@ -144,6 +144,8 @@ main (int argc, char **argv) if (is_bench) { + json_attr_double (&json_ctx, "duration", throughput + latency); + json_attr_double (&json_ctx, "iterations", 2 * d_total_i); json_attr_double (&json_ctx, "reciprocal-throughput", throughput / d_total_i); json_attr_double (&json_ctx, "latency", latency / d_total_i);