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

Method parse_string

bench/bench.cpp:804–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802 {}
803
804 clock_type::duration
805 parse_string(file_item const& fi, std::size_t repeat) const override
806 {
807 using namespace rapidjson;
808 auto const start = clock_type::now();
809 while(repeat--)
810 {
811 Allocator alloc;
812 GenericDocument<UTF8<>, Allocator> d(&alloc);
813 d.template Parse<rapidjson_impl::parse_flags>(
814 fi.text.data(), fi.text.size() );
815 }
816 return clock_type::now() - start;
817 }
818
819 clock_type::duration
820 parse_file(file_item const& fi, std::size_t repeat) const override

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected