/benchtests/ |
A D | json-lib.h | 33 typedef struct json_ctx json_ctx_t; typedef 36 void json_document_begin (json_ctx_t *ctx); 37 void json_document_end (json_ctx_t *ctx); 39 void json_attr_object_end (json_ctx_t *ctx); 44 void json_array_begin (json_ctx_t *ctx, const char *name); 45 void json_array_end (json_ctx_t *ctx); 47 void json_element_int (json_ctx_t *ctx, int64_t d); 48 void json_element_uint (json_ctx_t *ctx, uint64_t d); 49 void json_element_double (json_ctx_t *ctx, double d); 50 void json_element_object_begin (json_ctx_t *ctx); [all …]
|
A D | json-lib.c | 32 do_indent (json_ctx_t *ctx) in do_indent() 43 json_document_begin (json_ctx_t *ctx) in json_document_begin() 54 json_document_end (json_ctx_t *ctx) in json_document_end() 78 json_attr_object_end (json_ctx_t *ctx) in json_attr_object_end() 143 json_array_begin (json_ctx_t *ctx, const char *name) in json_array_begin() 157 json_array_end (json_ctx_t *ctx) in json_array_end() 178 json_element_uint (json_ctx_t *ctx, uint64_t d) in json_element_uint() 190 json_element_int (json_ctx_t *ctx, int64_t d) in json_element_int() 202 json_element_double (json_ctx_t *ctx, double d) in json_element_double() 214 json_element_object_begin (json_ctx_t *ctx) in json_element_object_begin() [all …]
|
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() 94 do_test_limit (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test_limit() 144 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, size_t in do_test() 196 do_one_test_page_boundary (json_ctx_t *json_ctx, CHAR *s1, CHAR *s2, in do_one_test_page_boundary() 213 do_test_page_boundary (json_ctx_t *json_ctx) in do_test_page_boundary() 250 do_one_test_page (json_ctx_t *json_ctx, size_t offset1, size_t offset2, in do_one_test_page() 296 do_test_page (json_ctx_t *json_ctx) in do_test_page() 321 json_ctx_t json_ctx; in test_main()
|
A D | bench-strcmp.c | 82 do_one_test (json_ctx_t *json_ctx, impl_t *impl, in do_one_test() 102 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, int in do_test() 148 do_one_test_page_boundary (json_ctx_t *json_ctx, CHAR *s1, CHAR *s2, in do_one_test_page_boundary() 164 do_test_page_boundary (json_ctx_t *json_ctx) in do_test_page_boundary() 204 json_ctx_t json_ctx; in test_main()
|
A D | bench-strcoll.c | 180 bench_list (json_ctx_t *json_ctx, word_list *list) in bench_list() 215 bench_file (json_ctx_t *json_ctx, const char *testname, const char *filename, in bench_file() 239 json_ctx_t *json_ctx = malloc (sizeof (json_ctx_t)); in main()
|
A D | bench-memset-large.c | 35 do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s, in do_one_test() 54 do_test (json_ctx_t *json_ctx, size_t align, int c, size_t len) in do_test() 79 json_ctx_t json_ctx; in test_main()
|
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() 69 do_test (json_ctx_t *json_ctx, size_t len, int both_ways) in do_test() 98 json_ctx_t json_ctx; in test_main()
|
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() 53 do_test (json_ctx_t *json_ctx, int c, size_t len) in do_test() 74 json_ctx_t json_ctx; in test_main()
|
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() 52 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len) in do_test() 87 json_ctx_t json_ctx; in test_main()
|
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() 73 do_test (json_ctx_t *json_ctx, size_t len, int overlap, int both_ways) in do_test() 112 json_ctx_t json_ctx; in test_main()
|
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() 68 do_test (json_ctx_t *json_ctx, size_t align, size_t pos, size_t len, int seek_char) in do_test() 107 json_ctx_t json_ctx; in test_main()
|
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() 55 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() 98 json_ctx_t json_ctx; in test_main()
|
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() 75 do_test (json_ctx_t *json_ctx, size_t align, size_t len) in do_test() 108 json_ctx_t json_ctx; in test_main()
|
A D | bench-memset.c | 43 do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s, in do_one_test() 62 do_test (json_ctx_t *json_ctx, size_t align, int c, size_t len) in do_test() 87 json_ctx_t json_ctx; in test_main()
|
A D | bench-memmove.c | 32 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, in do_one_test() 54 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len) in do_test() 89 json_ctx_t json_ctx; in test_main()
|
A D | bench-memcpy-random.c | 126 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, in do_one_test() 147 do_test (json_ctx_t *json_ctx, size_t max_size) in do_test() 178 json_ctx_t json_ctx; in test_main()
|
A D | bench-memcmp.c | 65 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const CHAR *s1, in do_one_test() 84 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() 130 json_ctx_t json_ctx; in test_main()
|
A D | bench-memcpy.c | 38 do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, const char *src, in do_one_test() 60 do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len, in do_test() 103 json_ctx_t json_ctx; in test_main()
|
A D | bench-pthread-locks.c | 419 do_bench_2 (const char *name, test_t func, int filler, json_ctx_t *js) in do_bench_2() 511 do_bench_1 (const char *name, test_t func, json_ctx_t *js) in do_bench_1() 525 json_ctx_t json_ctx; in do_bench()
|
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() 245 json_ctx_t json_ctx; in test_main()
|
A D | bench-malloc-simple.c | 117 json_ctx_t json_ctx; in bench()
|
A D | bench-skeleton.c | 42 json_ctx_t json_ctx; in main()
|
A D | bench-malloc-thread.c | 228 json_ctx_t json_ctx; in main()
|