about summary refs log tree commit diff
path: root/benchtests/bench-memset.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-memset.c
parent925733a913ff7087e56f6ffebd2998f683212e78 (diff)
downloadglibc-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-memset.c')
-rw-r--r--benchtests/bench-memset.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/benchtests/bench-memset.c b/benchtests/bench-memset.c
index dc7944c596..6b5c57f007 100644
--- a/benchtests/bench-memset.c
+++ b/benchtests/bench-memset.c
@@ -98,22 +98,6 @@ do_one_test (impl_t *impl, CHAR *s, int c __attribute ((unused)), size_t n)
 {
   size_t i, iters = INNER_LOOP_ITERS;
   timing_t start, stop, cur;
-  CHAR tstbuf[n];
-#ifdef TEST_BZERO
-  simple_bzero (tstbuf, n);
-  CALL (impl, s, n);
-  if (memcmp (s, tstbuf, n) != 0)
-#else
-  CHAR *res = CALL (impl, s, c, n);
-  if (res != s
-      || SIMPLE_MEMSET (tstbuf, c, n) != tstbuf
-      || MEMCMP (s, tstbuf, n) != 0)
-#endif /* !TEST_BZERO */
-    {
-      error (0, 0, "Wrong result in function %s", impl->name);
-      ret = 1;
-      return;
-    }
 
   TIMING_NOW (start);
   for (i = 0; i < iters; ++i)