From 94aca5e740d6101f91002d027776252340f6abef Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 11 Jun 2013 20:51:55 +0530 Subject: 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. --- debug/test-strcpy_chk.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'debug') diff --git a/debug/test-strcpy_chk.c b/debug/test-strcpy_chk.c index 1c64c60fb7..736ef3cd7a 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 -- cgit v1.2.3