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

Method parse

bench/bench-conv.cpp:548–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 {}
547
548 clock_type::duration
549 parse(file_item const& fi, std::size_t repeat) const override
550 {
551 auto const start = clock_type::now();
552 parser p( {}, get_parse_options() );
553 while(repeat--)
554 {
555 monotonic_resource mr;
556 storage_ptr sp;
557 if( is_pool_ )
558 sp = &mr;
559 p.reset( std::move(sp) );
560
561 p.write( fi.text.data(), fi.text.size() );
562 mpl::mp_with_index<supported_file_count>(
563 fi.index, convert_from_value{p.release()});
564 }
565 return clock_type::now() - start;
566 }
567
568 clock_type::duration
569 serialize(file_item const& fi, std::size_t repeat) const override

Callers

nothing calls this directly

Calls 5

resetMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected