From patchwork Sat Aug 11 13:27:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 28861 Received: (qmail 42139 invoked by alias); 11 Aug 2018 13:27:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 42127 invoked by uid 89); 11 Aug 2018 13:27:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=workload X-HELO: homiemail-a52.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [COMMITTED] [benchtests] Add mandatory attributes to workload tests Date: Sat, 11 Aug 2018 18:57:22 +0530 Message-Id: <20180811132723.16416-1-siddhesh@sourceware.org> 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. --- ChangeLog | 5 +++++ benchtests/bench-skeleton.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 64ebb9fbfb..9c7bb73ff8 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 666212a64f..4fc1827ca5 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);