From: Siddhesh Poyarekar Date: Wed, 20 Apr 2016 05:28:20 +0000 (+0530) Subject: benchtests: Update README to include instructions for bench-build target X-Git-Tag: glibc-2.24~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfdda211c6b082d12ec448a5a65bfba02e208b98;p=thirdparty%2Fglibc.git benchtests: Update README to include instructions for bench-build target --- diff --git a/ChangeLog b/ChangeLog index 9f9270bdae2..74f57db0e9d 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 999d268cf85..847df87c961 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: ===============================