From patchwork Mon Apr 15 14:29:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 1085660 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-101388-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Kp/vTFi4"; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="AeYIqcbf"; 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 44jW9s55B6z9s3q for ; Tue, 16 Apr 2019 00:30:09 +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:cc:subject:date:message-id :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=TmDEgYRcR12KasfQ1oeLit7wE9Ks38oWxJC4ySc+Ec46Lfz/fXn7B +RqslTzoSMFLi/5oGZ6unCT/UsFZXJfbknC3aQWccB2rvlT4jLjSLCEvdwgiVze4 D7+Qk3dDfPJC1lIOMVZbppfX7DHYOFxgLGuEd1BxVBzAntwTeGMwgY= 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:cc:subject:date:message-id :content-type:content-transfer-encoding:mime-version; s=default; bh=GoUhahbllzJWsc+MVRb6n3DXOUc=; b=Kp/vTFi4Xb+ZAe5NOXicGeLezsD9 SZhGgyVliTO5JDe3qsFeNG//ISuUQTVsHe4Xq9upUuJvnJH6uvjVSm4URpQBBhy+ YLua92BkXCJ29lZvyYsSVE6TxDykUHGcf80Cadjb8E9ZpY2uxrPRawtQBBsv/LSm 4jKrBS3Bz0HNKN8= Received: (qmail 90369 invoked by alias); 15 Apr 2019 14:30:03 -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 90343 invoked by uid 89); 15 Apr 2019 14:30:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR04-VI1-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1k9A/la6Ex2LRG0+Pjdn9qY6QSjdACA1MrsUxTw5muU=; b=AeYIqcbf+P6IzVFA3MXqujhCHr9yRDPupCtn9CuA9T+myBY8vyRPhodw9gLP08lUdHdOeEcNCtev+mjog+6kwekYYl2G18ZVLbANPWFQLrKfLiD3YF5M3CDpEitjUp/IzHHynZsKjkDIJ+A9UKdhIAl0K5oCOROBiFexAr+iuOI= From: Wilco Dijkstra To: "libc-alpha@sourceware.org" CC: nd Subject: [PATCH] Reduce benchtests time Date: Mon, 15 Apr 2019 14:29:57 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED Reduce the total time taken by benchtests. The malloc thread test takes 4 minutes to run which is significantly more than most other tests. Reduce this to a more reasonable 40 seconds. The math tests take 10 seconds each, eventhough all they do is loop on the same input. Anything more than 1 second runtime is way overkill, so set the limit to 1 second. ChangeLog: 2019-04-15 Wilco Dijkstra * benchtests/Makefile (BENCH_DURATION): Set to 1 second. * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds. diff --git a/benchtests/Makefile b/benchtests/Makefile index 09f7cb8e475a312268eebb4d346edde70d22bb3d..e8a8887b5a402ba7daaf5ec03f46eabe8fba8c21 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -120,9 +120,9 @@ binaries-bench := $(addprefix $(objpfx)bench-,$(bench)) binaries-benchset := $(addprefix $(objpfx)bench-,$(benchset)) binaries-bench-malloc := $(addprefix $(objpfx)bench-,$(bench-malloc)) -# The default duration: 10 seconds. +# The default duration: 1 seconds. ifndef BENCH_DURATION -BENCH_DURATION := 10 +BENCH_DURATION := 1 endif CPPFLAGS-nonlib += -DDURATION=$(BENCH_DURATION) -D_ISOMAC diff --git a/benchtests/bench-malloc-thread.c b/benchtests/bench-malloc-thread.c index 52261425b0f1af32c17328ea5e0a5bb6f230df47..9d7dcf26b7ba64addd946b3766cef73d9cf25ec3 100644 --- a/benchtests/bench-malloc-thread.c +++ b/benchtests/bench-malloc-thread.c @@ -31,7 +31,7 @@ #include "json-lib.h" /* Benchmark duration in seconds. */ -#define BENCHMARK_DURATION 60 +#define BENCHMARK_DURATION 10 #define RAND_SEED 88 #ifndef NUM_THREADS