BENCHMARK_ADVANCED("serializeJsonStringIfNeeded_" _lengthlabel "_" _label)(Catch::Benchmark::Chronometer meter) { \
}; \
BENCHMARK_ADVANCED("deSerializeJsonStringIfNeeded_" _lengthlabel "_" _label)(Catch::Benchmark::Chronometer meter) { \
std::istringstream is(serialized, std::ios::binary); \
meter.measure([&] { \
is.clear(); \
is.seekg(0, std::ios::beg); \
}); \
};
static std::string makeRepeatTo(const std::string &s, size_t length)
Definition benchmark_serialize.cpp:11
std::string serializeJsonStringIfNeeded(std::string_view s)
Definition serialize.cpp:251
std::string deSerializeJsonStringIfNeeded(std::istream &is)
Definition serialize.cpp:260