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

Method parse_file

bench/bench.cpp:662–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660 }
661
662 clock_type::duration
663 parse_file(file_item const& fi, std::size_t repeat) const override
664 {
665 auto const start = clock_type::now();
666 while(repeat--)
667 {
668 std::ifstream is( fi.name, std::ios::in | std::ios::binary );
669
670 monotonic_resource mr;
671 storage_ptr sp;
672 if( is_pool_ )
673 sp = &mr;
674
675 auto jv = json::parse( is, std::move(sp), get_parse_options() );
676 (void)jv;
677 }
678 return clock_type::now() - start;
679 }
680
681 clock_type::duration
682 serialize_string(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