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

Method parse_string

bench/bench.cpp:573–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 {}
572
573 clock_type::duration
574 parse_string(file_item const& fi, std::size_t repeat) const override
575 {
576 auto const start = clock_type::now();
577 null_parser p( get_parse_options() );
578 while(repeat--)
579 {
580 p.reset();
581 system::error_code ec;
582 p.write(fi.text.data(), fi.text.size(), ec);
583 if( ec.failed() )
584 throw system::system_error( ec );
585 }
586 return clock_type::now() - start;
587 }
588
589 clock_type::duration
590 parse_file(file_item const& fi, std::size_t repeat) const override

Callers

nothing calls this directly

Calls 5

system_errorClass · 0.85
resetMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected