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

Method parse_string

bench/bench.cpp:708–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706 {}
707
708 clock_type::duration
709 parse_string(file_item const& fi, std::size_t repeat) const override
710 {
711 std::istringstream is(fi.text);
712 is.exceptions(std::ios::failbit);
713
714 auto const start = clock_type::now();
715 while(repeat--)
716 {
717 monotonic_resource mr;
718 storage_ptr sp;
719 if( is_pool_ )
720 sp = &mr;
721
722 value jv( std::move(sp) );
723 is.seekg(0);
724 is >> get_parse_options() >> jv;
725 }
726 return clock_type::now() - start;
727 }
728
729 clock_type::duration
730 parse_file(file_item const& fi, std::size_t repeat) const override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected