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

Method parse_file

bench/bench.cpp:729–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727 }
728
729 clock_type::duration
730 parse_file(file_item const& fi, std::size_t repeat) const override
731 {
732 auto const start = clock_type::now();
733 while(repeat--)
734 {
735 monotonic_resource mr;
736 storage_ptr sp;
737 if( is_pool_ )
738 sp = &mr;
739
740 std::ifstream is( fi.name, std::ios::in | std::ios::binary );
741 is.exceptions(std::ios::failbit);
742
743 value jv( std::move(sp) );
744 is >> get_parse_options() >> jv;
745 }
746 return clock_type::now() - start;
747 }
748
749 clock_type::duration
750 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