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-memccpy.c | |
parent | 925733a913ff7087e56f6ffebd2998f683212e78 (diff) | |
download | glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.gz glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.xz glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.zip |
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-memccpy.c')
-rw-r--r-- | benchtests/bench-memccpy.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/benchtests/bench-memccpy.c b/benchtests/bench-memccpy.c index 754968767c..278de51012 100644 --- a/benchtests/bench-memccpy.c +++ b/benchtests/bench-memccpy.c @@ -58,25 +58,9 @@ static void do_one_test (impl_t *impl, void *dst, const void *src, int c, size_t len, size_t n) { - void *expect = len > n ? NULL : (char *) dst + len; size_t i, iters = INNER_LOOP_ITERS; timing_t start, stop, cur; - if (CALL (impl, dst, src, c, n) != expect) - { - error (0, 0, "Wrong result in function %s %p %p", impl->name, - CALL (impl, dst, src, c, n), expect); - ret = 1; - return; - } - - if (memcmp (dst, src, len > n ? n : len) != 0) - { - error (0, 0, "Wrong result in function %s", impl->name); - ret = 1; - return; - } - TIMING_NOW (start); for (i = 0; i < iters; ++i) { |