diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-04-06 20:53:24 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-04-06 20:53:24 +0530 |
commit | 67e3b0c63c35769c1ba28fa2a32446332bb4fcef (patch) | |
tree | 30222f7961103558c51c99871cead59139e65fd5 /string/test-mempcpy.c | |
parent | dfc7bf8a24f63532da167cc7131227c1c4027ffb (diff) | |
download | glibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.tar.gz glibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.tar.xz glibc-67e3b0c63c35769c1ba28fa2a32446332bb4fcef.zip |
tests/string: Drop simple/stupid/builtin tests
In most cases the simple/stupid/builtin functions were in there to benchmark optimized implementations against. Only in some cases the functions are used to check expected results. Remove these tests from IMPL() and only keep them in wherever they're used for a specific purpose, e.g. to generate expected results. This improves timing of `make subdirs=string` by over a minute and a half (over 15%) on a Whiskey Lake laptop. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Noah Goldstein <libc-alpha@sourceware.org>
Diffstat (limited to 'string/test-mempcpy.c')
-rw-r--r-- | string/test-mempcpy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/string/test-mempcpy.c b/string/test-mempcpy.c index 9637d02787..75808b2831 100644 --- a/string/test-mempcpy.c +++ b/string/test-mempcpy.c @@ -22,11 +22,9 @@ #define TEST_NAME "mempcpy" #include "test-string.h" -char *simple_mempcpy (char *, const char *, size_t); - -IMPL (simple_mempcpy, 0) IMPL (mempcpy, 1) +/* Naive implementation to verify results. */ char * simple_mempcpy (char *dst, const char *src, size_t n) { |