diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2017-08-11 12:17:24 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2017-08-11 12:19:26 +0530 |
commit | 61c982910da9b60f7ac48eb1caaac1f4b013dbb1 (patch) | |
tree | 511ff18d802d82610ec60a40a49e5daef8681446 /benchtests/bench-memmove.c | |
parent | 925733a913ff7087e56f6ffebd2998f683212e78 (diff) | |
download | glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.zip glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.gz glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.bz2 |
benchtests: Remove verification runs from benchmark tests
The test run is unnecessary and interferes with the benchmark. The
tests are done during make check, so they're unnecessary here.
* benchtests/bench-memccpy.c (do_one_test): Remove checks.
* benchtests/bench-memchr.c (do_one_test): Likewise.
* benchtests/bench-memcpy-large.c (do_one_test): Likewise.
* benchtests/bench-memcpy.c (do_one_test): Likewise.
* benchtests/bench-memmove-large.c (do_one_test): Likewise.
* benchtests/bench-memmove.c (do_one_test): Likewise.
* benchtests/bench-memset-large.c (do_one_test): Likewise.
* benchtests/bench-memset.c (do_one_test): Likewise.
* benchtests/bench-string.h (test_init): Remove memsets.
Diffstat (limited to 'benchtests/bench-memmove.c')
-rw-r--r-- | benchtests/bench-memmove.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/benchtests/bench-memmove.c b/benchtests/bench-memmove.c index 4cbaa46..93c58a6 100644 --- a/benchtests/bench-memmove.c +++ b/benchtests/bench-memmove.c @@ -70,31 +70,6 @@ do_one_test (impl_t *impl, char *dst, char *src, const char *orig_src, size_t i, iters = INNER_LOOP_ITERS; timing_t start, stop, cur; - /* This also clears the destination buffer set by the previous run. */ - memcpy (src, orig_src, len); -#ifdef TEST_BCOPY - CALL (impl, src, dst, len); -#else - char *res; - - res = CALL (impl, dst, src, len); - if (res != dst) - { - error (0, 0, "Wrong result in function %s %p %p", impl->name, - res, dst); - ret = 1; - return; - } -#endif - - if (memcmp (dst, orig_src, len) != 0) - { - error (0, 0, "Wrong result in function %s dst \"%s\" src \"%s\"", - impl->name, dst, src); - ret = 1; - return; - } - TIMING_NOW (start); for (i = 0; i < iters; ++i) { |