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: 32291 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