| 27 | |
| 28 | #ifdef HAS_YYJSON |
| 29 | static 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 |