MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / get_json

Function get_json

benchmark/main.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "yyjson.hpp"
32
33static 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
41template <typename Json, typename PR, typename SR>
42static void BM_Encode(benchmark::State &state, std::string_view filename,

Callers 2

regitser_OnDemandFunction · 0.70
mainFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected