| 31 | #include "yyjson.hpp" |
| 32 | |
| 33 | static std::string get_json(const std::string_view file) { |
| 34 | std::ifstream ifs; |
| 35 | std::stringstream ss; |
| 36 | ifs.open(file.data()); |
| 37 | ss << ifs.rdbuf(); |
| 38 | return ss.str(); |
| 39 | } |
| 40 | |
| 41 | template <typename Json, typename PR, typename SR> |
| 42 | static void BM_Encode(benchmark::State &state, std::string_view filename, |
no test coverage detected