Skip to content

Commit

Permalink
No verify
Browse files Browse the repository at this point in the history
  • Loading branch information
swenson committed Feb 13, 2024
1 parent faac817 commit 44f4858
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,26 @@ static void fill(int64_t *dst, const int size, int type) {
}
}

// #define TEST_STDLIB(name) do { \
// res = 0; \
// diff = 0; \
// printf("%-29s", "stdlib " #name ); \
// for (test = 0; test < sizes_cnt; test++) { \
// int64_t size = sizes[test]; \
// fill(dst, size, type); \
// usec1 = utime(); \
// name (dst, size, sizeof(int64_t), simple_cmp); \
// usec2 = utime(); \
// res = verify(dst, size); \
// if (!res) { \
// break; \
// } \
// diff += usec2 - usec1; \
// } \
// printf(" - %s, %10.1f usec\n", res ? "ok" : "FAILED", diff); \
// if (!res) return 0; \
// } while (0)

#define TEST_STDLIB(name) do { \
res = 0; \
diff = 0; \
Expand All @@ -240,17 +260,12 @@ static void fill(int64_t *dst, const int size, int type) {
usec1 = utime(); \
name (dst, size, sizeof(int64_t), simple_cmp); \
usec2 = utime(); \
// res = verify(dst, size); \
// if (!res) { \
// break; \
// } \
diff += usec2 - usec1; \
} \
printf(" - %s, %10.1f usec\n", res ? "ok" : "FAILED", diff); \
if (!res) return 0; \
} while (0)


#define TEST_SORT_H(name) do { \
res = 0; \
diff = 0; \
Expand Down

0 comments on commit 44f4858

Please sign in to comment.