diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-11 20:51:55 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-11 20:51:55 +0530 |
commit | 94aca5e740d6101f91002d027776252340f6abef (patch) | |
tree | 6919c5cb947c9cf9b7d1b0b47f24bfde92c956a1 /debug | |
parent | d04310f210734448a5b950988d49dcea145df9c1 (diff) | |
download | glibc-94aca5e740d6101f91002d027776252340f6abef.zip glibc-94aca5e740d6101f91002d027776252340f6abef.tar.gz glibc-94aca5e740d6101f91002d027776252340f6abef.tar.bz2 |
Port remaining string benchmarks
There were a few more string benchmarks (strcpy_chk and stpcpy_check)
in the debug directory that needed to be ported over.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/test-strcpy_chk.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/debug/test-strcpy_chk.c b/debug/test-strcpy_chk.c index 1c64c60..736ef3c 100644 --- a/debug/test-strcpy_chk.c +++ b/debug/test-strcpy_chk.c @@ -110,24 +110,6 @@ do_one_test (impl_t *impl, char *dst, const char *src, ret = 1; return; } - - if (HP_TIMING_AVAIL) - { - hp_timing_t start __attribute ((unused)); - hp_timing_t stop __attribute ((unused));; - hp_timing_t best_time = ~ (hp_timing_t) 0; - size_t i; - - for (i = 0; i < 32; ++i) - { - HP_TIMING_NOW (start); - CALL (impl, dst, src, dlen); - HP_TIMING_NOW (stop); - HP_TIMING_BEST (best_time, start, stop); - } - - printf ("\t%zd", (size_t) best_time); - } } static void @@ -151,14 +133,8 @@ do_test (size_t align1, size_t align2, size_t len, size_t dlen, int max_char) s1[i] = 32 + 23 * i % (max_char - 32); s1[len] = 0; - if (HP_TIMING_AVAIL && dlen > len) - printf ("Length %4zd, alignment %2zd/%2zd:", len, align1, align2); - FOR_EACH_IMPL (impl, 0) do_one_test (impl, s2, s1, len, dlen); - - if (HP_TIMING_AVAIL && dlen > len) - putchar ('\n'); } static void |