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

Method parse

bench/bench-conv.cpp:611–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609 {}
610
611 clock_type::duration
612 parse(file_item const& fi, std::size_t repeat) const override
613 {
614 auto const start = clock_type::now();
615 while(repeat--)
616 {
617 monotonic_resource mr;
618 storage_ptr sp;
619 if( is_pool_ )
620 sp = &mr;
621
622 auto jv = boost::json::parse(
623 fi.text, std::move(sp), get_parse_options() );
624 mpl::mp_with_index<supported_file_count>(
625 fi.index, convert_from_value{jv});
626 }
627 return clock_type::now() - start;
628 }
629
630 clock_type::duration
631 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