/benchtests/ |
A D | bench-strstr.c | 132 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() function 202 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test() 236 do_one_test (impl, hs, ne, NULL); in test_hard_needle() 257 do_one_test (impl, hs, ne, NULL); in test_hard_needle() 277 do_one_test (impl, hs, ne, NULL); in test_hard_needle()
|
A D | bench-strncmp.c | 75 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const CHAR *s1, const CHAR in do_one_test() function 136 do_one_test (json_ctx, impl, s1, s2, n, exp_result); in do_test_limit() 188 do_one_test (json_ctx, impl, s1, s2, n, exp_result); in do_test() 207 do_one_test (json_ctx, impl, s1, s2, n, exp_result); in do_one_test_page_boundary() 276 do_one_test (json_ctx, impl, s1, s2, page_size, -exp_result); in do_one_test_page() 289 do_one_test (json_ctx, impl, s1, s2, page_size, exp_result); in do_one_test_page()
|
A D | bench-memmem.c | 105 do_one_test (impl_t *impl, const void *haystack, size_t haystack_len, in do_one_test() function 134 do_one_test (impl, buf1, BUF1PAGES * page_size, str, len, buf1 + idx); in do_test() 165 do_one_test (impl, buf1, BUF1PAGES * page_size, buf1 + idx, len, in do_random_tests()
|
A D | bench-math-inlines.c | 220 do_one_test (json_ctx_t *json_ctx, proto_t test_fn, volatile double *arr, in do_one_test() function 269 do_one_test (&json_ctx, test_list[i].fn, arr2, SIZE, "inf/nan"); in test_main() 276 do_one_test (&json_ctx, test_list[i].fn, arr1, SIZE, "normal"); in test_main()
|
A D | bench-strcmp.c | 82 do_one_test (json_ctx_t *json_ctx, impl_t *impl, in do_one_test() function 141 do_one_test (json_ctx, impl, s1, s2, exp_result); in do_test() 158 do_one_test (json_ctx, impl, s1, s2, exp_result); in do_one_test_page_boundary()
|
A D | bench-memset-large.c | 35 do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s, in do_one_test() function 68 do_one_test (json_ctx, impl, (CHAR *) (buf1) + align, c, len); in do_test()
|
A D | bench-memcpy-walk.c | 47 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, in do_one_test() function 85 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
|
A D | bench-memset-walk.c | 35 do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s, CHAR *s_end, in do_one_test() function 62 do_one_test (json_ctx, impl, (CHAR *) buf1, in do_test()
|
A D | bench-memmove-large.c | 33 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, in do_one_test() function 78 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
|
A D | bench-memmove-walk.c | 51 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, in do_one_test() function 98 do_one_test (json_ctx, impl, (char *) buf2, (char *) buf1, len); in do_test()
|
A D | bench-rawmemchr.c | 42 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const char *s, int c, char *exp_res) in do_one_test() function 98 do_one_test (json_ctx, impl, (char *) (buf1 + align), seek_char, result); in do_test()
|
A D | bench-memccpy.c | 41 do_one_test (impl_t *impl, void *dst, const void *src, int c, size_t len, in do_one_test() function 90 do_one_test (impl, s2, s1, c, len, n); in do_test()
|
A D | bench-strcasecmp.c | 43 do_one_test (impl_t *impl, const char *s1, const char *s2, int exp_result) in do_one_test() function 109 do_one_test (impl, s1, s2, exp_result); in do_test()
|
A D | bench-memcpy-large.c | 36 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, const char *src, in do_one_test() function 85 do_one_test (json_ctx, impl, s2, s1, len); in do_test()
|
A D | bench-strnlen.c | 52 do_one_test (impl_t *impl, const CHAR *s, size_t maxlen, size_t exp_len) in do_one_test() function 95 do_one_test (impl, (CHAR *) (buf + align), maxlen, MIN (len, maxlen)); in do_test()
|
A D | bench-strspn.c | 61 do_one_test (impl_t *impl, const CHAR *s, const CHAR *acc, size_t exp_res) in do_one_test() function 124 do_one_test (impl, s, acc, pos); in do_test()
|
A D | bench-strlen.c | 49 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const CHAR *s, size_t exp_len) in do_one_test() function 97 do_one_test (json_ctx, impl, (CHAR *) (buf + align), len); in do_test()
|
A D | bench-memset.c | 43 do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s, in do_one_test() function 76 do_one_test (json_ctx, impl, (CHAR *) (buf1) + align, c, len); in do_test()
|
A D | bench-strcat.c | 52 do_one_test (impl_t *impl, CHAR *dst, const CHAR *src) in do_one_test() function 115 do_one_test (impl, s2, s1); in do_test()
|
A D | bench-memchr.c | 57 do_one_test (impl_t *impl, const CHAR *s, int c, size_t n) in do_one_test() function 107 do_one_test (impl, (CHAR *) (buf + align), seek_char, len); in do_test()
|
A D | bench-strpbrk.c | 66 do_one_test (impl_t *impl, const CHAR *s, const CHAR *rej, RES_TYPE exp_res) in do_one_test() function 142 do_one_test (impl, s, rej, result); in do_test()
|
A D | bench-strrchr.c | 56 do_one_test (impl_t *impl, const CHAR *s, int c, CHAR *exp_res) in do_one_test() function 121 do_one_test (impl, (CHAR *) (buf + align), seek_char, result); in do_test()
|
A D | bench-strcpy.c | 54 do_one_test (impl_t *impl, CHAR *dst, const CHAR *src, in do_one_test() function 116 do_one_test (impl, s2, s1, len); in do_test()
|
A D | bench-strcasestr.c | 37 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() function 95 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
|
A D | bench-strtok.c | 61 do_one_test (impl_t * impl, const char *s1, const char *s2) in do_one_test() function 120 do_one_test (impl, s1, s2); in do_test()
|