MCPcopy Create free account
hub / github.com/acl-dev/acl / yyjson_test

Function yyjson_test

lib_acl_cpp/samples/benchmark/json/main.cpp:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28#ifdef HAS_YYJSON
29static int yyjson_test(const acl::string& data, int count) {
30 size_t dlen = data.size();
31 int i;
32
33 for (i = 0; i < count; i++) {
34 yyjson_doc* json = yyjson_read(data, dlen, 0);
35 if (json) {
36 yyjson_doc_free(json);
37 } else {
38 printf("parse json error\r\n");
39 break;
40 }
41 }
42
43 return i;
44}
45#endif
46
47#ifdef HAS_SIMDJSON

Callers 1

mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…