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: 956547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-95173-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sourceware.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="FqIEmVLQ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41njTv26gbz9s9N for ; Sat, 11 Aug 2018 23:27:45 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=utIlzwu4peWmYWA3htA3bHA6WGrAzZWY05DnEnEsfsf+75Ywv8RIU fuEDr1ABix/PupLkKYIeu9VaXGBiwX6l586qZNxBi42ixVbIonXN1LHkdYifgCKo MDIf90C4cC/PJvWIiuEj3/V4vVCxb9EvODsxVMcXwt0O+LM4O5GEOY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=BIeBE0VdkoODYxU/2x00xC9KQi0=; b=FqIEmVLQ7sbvkiWepoFk3srtAXcS IFoM1k8SyCVRl7mEUt1CYVS7JeM/cUWRCadRpCjRQdYVarNn0oqx+8Y2IRdh2s+u lZZw6XWAEA7C/yY0NX+dk3Ul9VRU+mavfnfB21kiAlhJxc5T8s38SdJB5llZGItO w6V6do8tsSCpAZc= 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);