benchtests: Update README to include instructions for bench-build target

This commit is contained in:
Siddhesh Poyarekar 2016-04-20 10:58:20 +05:30
parent 68e9d3c688
commit bfdda211c6
2 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2016-04-20 Siddhesh Poyarekar <sid@reserved-bit.com> 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. Makefile.in (bench-build): New target.
Rules (PHONY): Add bench-build target. Rules (PHONY): Add bench-build target.
benchtests/Makefile (bench): Depend on bench-build. benchtests/Makefile (bench): Depend on bench-build.

View 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. 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: Adding a function to benchtests:
=============================== ===============================