benchtests: Fix walking sizes and directions for *-walk benchmarks
commit4d7632ff687dc60fb9ed38bae682d395017b61a8
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 20 Nov 2017 12:25:59 +0000 (20 17:55 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 20 Nov 2017 12:33:32 +0000 (20 18:03 +0530)
tree3ee504482bd103ea4adb3cf2368451b133c9266a
parenta465b89ee82642c193cfd7deb6eb5d999ffaa5b7
benchtests: Fix walking sizes and directions for *-walk benchmarks

Make the walking benchmarks walk only backwards since copying both
ways is biased in favour of implementations that use non-temporal
stores for larger sizes; falkor is one of them.  This also fixes up
bugs in computation of the result which ended up multiplying the
length with the timing result unnecessarily.

* benchtests/bench-memcpy-walk.c (do_one_test): Copy only
backwards.  Fix timing computation.
* benchtests/bench-memmove-walk.c (do_one_test): Likewise.
* benchtests/bench-memset-walk.c (do_one_test): Walk backwards
on memset by N at a time.  Fix timing computation.
ChangeLog
benchtests/bench-memcpy-walk.c
benchtests/bench-memmove-walk.c
benchtests/bench-memset-walk.c