From patchwork Wed Apr 20 05:29:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 612480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3qqVpL3b1Cz9t3w for ; Wed, 20 Apr 2016 15:30:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=UkbEL0v+; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=p8tukArfQ/gbJL0GIGeik2S/f7B6z lsK1CSvMqTyZIY+k59iwZ7KC1BZIuBku++HMapDcy3GHLzKpAj1DrcoGkUP/8U7d I1UZBnHXRTfs2VIgl2Ow2HeOge6tFU9KUUniyi0pZ6AP1PT3rFj9kHxUOw+cAKM5 EilEyr5RJSEzgk= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=iYN02XTLh9fUajha20GSzjY8SAA=; b=Ukb EL0v+5+pwRJuuH3T5XO8XQ8FM5uj/0ezWk+h9Fr9ZmjUQU1k+Deyw6gjXqMUf17w 5qbeOlMdePPLAySxF1xLqJDLbfpbi930VCXf1C5VCNdkkTXq+7hOz/oMGRV6eEiB 0dR3R+AjaEozMEC1eKR4DUC7hhTNQoE7BHFS2A70= Received: (qmail 37138 invoked by alias); 20 Apr 2016 05:30:24 -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 33113 invoked by uid 89); 20 Apr 2016 05:30:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_40, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=clock_gettime, sid@reserved-bit.com, sk:sid@res, D*reserved-bit.com X-HELO: mx-out01.mykolab.com X-Spam-Score: -2.9 Date: Wed, 20 Apr 2016 10:59:58 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [COMMITTED] benchtests: Update README to include instructions for bench-build target Message-ID: <20160420052953.GA18913@devel.intra.reserved-bit.com> MIME-Version: 1.0 Content-Disposition: inline --- ChangeLog | 3 +++ benchtests/README | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9f9270b..74f57db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-04-20 Siddhesh Poyarekar + benchtests/README: Update README to include instructions on + using bench-build. + Makefile.in (bench-build): New target. Rules (PHONY): Add bench-build target. benchtests/Makefile (bench): Depend on bench-build. diff --git a/benchtests/README b/benchtests/README index 999d268..847df87 100644 --- a/benchtests/README +++ b/benchtests/README @@ -34,6 +34,23 @@ the benchmark to use clock_gettime by invoking make as follows: Again, one must run `make bench-clean' before changing the measurement method. +Running benchmarks on another target: +==================================== + +If the target where you want to run benchmarks is not capable of building the +code or you're cross-building, you could build and execute the benchmark in +separate steps. On the build system run: + + $ make bench-build + +and then copy the source and build directories to the target and run the +benchmarks from the build directory as usual: + + $ make bench + +make sure the copy preserves timestamps by using either rsync or scp -p +otherwise the above command may try to build the benchmark again. + Adding a function to benchtests: ===============================