MCPcopy Create free account
hub / github.com/boostorg/json / serialize_string

Method serialize_string

bench/bench.cpp:681–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679 }
680
681 clock_type::duration
682 serialize_string(file_item const& fi, std::size_t repeat) const override
683 {
684 monotonic_resource mr;
685 storage_ptr sp;
686 if( is_pool_ )
687 sp = &mr;
688 auto jv = json::parse( fi.text, std::move(sp) );
689
690 auto const start = clock_type::now();
691 std::string out;
692 while(repeat--)
693 out = json::serialize(jv);
694 return clock_type::now() - start;
695 }
696};
697
698//----------------------------------------------------------

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected