]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: Update README to include instructions for bench-build target
authorSiddhesh Poyarekar <sid@reserved-bit.com>
Wed, 20 Apr 2016 05:28:20 +0000 (10:58 +0530)
committerSiddhesh Poyarekar <sid@reserved-bit.com>
Wed, 20 Apr 2016 05:28:20 +0000 (10:58 +0530)
ChangeLog
benchtests/README

index 9f9270bdae216634e6b6d93f6b82dcffa67f1257..74f57db0e9d3f573a488b4d522a398c8cdab4346 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
 
+       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.
index 999d268cf850001ff2d7cf17b024ea426d327cf8..847df87c9614cd9b5dfe5d29d091e35f5183c3c8 100644 (file)
@@ -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:
 ===============================