aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-memcpy-large.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-08-11 12:17:24 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-08-11 12:19:26 +0530
commit61c982910da9b60f7ac48eb1caaac1f4b013dbb1 (patch)
tree511ff18d802d82610ec60a40a49e5daef8681446 /benchtests/bench-memcpy-large.c
parent925733a913ff7087e56f6ffebd2998f683212e78 (diff)
downloadglibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar
glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.gz
glibc-61c982910da9b60f7ac48eb1caaac1f4b013dbb1.tar.bz2
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-memcpy-large.c')
-rw-r--r--benchtests/bench-memcpy-large.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/benchtests/bench-memcpy-large.c b/benchtests/bench-memcpy-large.c
index 965edf547f..1dea16f4b2 100644
--- a/benchtests/bench-memcpy-large.c
+++ b/benchtests/bench-memcpy-large.c
@@ -39,26 +39,6 @@ do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, const char *src,
size_t i, iters = 16;
timing_t start, stop, cur;
- /* Must clear the destination buffer updated by the previous run. */
- for (i = 0; i < len; i++)
- dst[i] = 0;
-
- if (CALL (impl, dst, src, len) != MEMCPY_RESULT (dst, len))
- {
- error (0, 0, "Wrong result in function %s %p %p", impl->name,
- CALL (impl, dst, src, len), MEMCPY_RESULT (dst, len));
- ret = 1;
- return;
- }
-
- if (memcmp (dst, 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)
{