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

Method parse

bench/bench-conv.cpp:659–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657 {}
658
659 clock_type::duration
660 parse(file_item const& fi, std::size_t repeat) const override
661 {
662 std::istringstream is(fi.text);
663 is.exceptions(std::ios::failbit);
664
665 auto const start = clock_type::now();
666 while(repeat--)
667 {
668 monotonic_resource mr;
669 storage_ptr sp;
670 if( is_pool_ )
671 sp = &mr;
672
673 value jv( std::move(sp) );
674 is.seekg(0);
675 is >> get_parse_options() >> jv;
676 mpl::mp_with_index<supported_file_count>(
677 fi.index, convert_from_value{jv});
678 }
679 return clock_type::now() - start;
680 }
681
682 clock_type::duration
683 serialize(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