Lines Matching refs:json_ctx

42 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const char *s, int c, char *exp_res)  in do_one_test()  argument
64 json_element_double (json_ctx, (double) cur / (double) iters); 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() argument
91 json_element_object_begin (json_ctx); in do_test()
92 json_attr_uint (json_ctx, "length", pos); in do_test()
93 json_attr_uint (json_ctx, "alignment", align); in do_test()
94 json_attr_uint (json_ctx, "char", seek_char); in do_test()
95 json_array_begin (json_ctx, "timings"); in do_test()
98 do_one_test (json_ctx, impl, (char *) (buf1 + align), seek_char, result); in do_test()
100 json_array_end (json_ctx); in do_test()
101 json_element_object_end (json_ctx); in do_test()
107 json_ctx_t json_ctx; in test_main() local
112 json_init (&json_ctx, 0, stdout); in test_main()
114 json_document_begin (&json_ctx); in test_main()
115 json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); in test_main()
117 json_attr_object_begin (&json_ctx, "functions"); in test_main()
118 json_attr_object_begin (&json_ctx, TEST_NAME); in test_main()
119 json_attr_string (&json_ctx, "bench-variant", ""); in test_main()
121 json_array_begin (&json_ctx, "ifuncs"); in test_main()
123 json_element_string (&json_ctx, impl->name); in test_main()
124 json_array_end (&json_ctx); in test_main()
126 json_array_begin (&json_ctx, "results"); in test_main()
130 do_test (&json_ctx, 0, 16 << i, 2048, 23); in test_main()
131 do_test (&json_ctx, i, 64, 256, 23); in test_main()
132 do_test (&json_ctx, 0, 16 << i, 2048, 0); in test_main()
133 do_test (&json_ctx, i, 64, 256, 0); in test_main()
137 do_test (&json_ctx, 0, i, i + 1, 23); in test_main()
138 do_test (&json_ctx, 0, i, i + 1, 0); in test_main()
141 json_array_end (&json_ctx); in test_main()
142 json_attr_object_end (&json_ctx); in test_main()
143 json_attr_object_end (&json_ctx); in test_main()
144 json_document_end (&json_ctx); in test_main()