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

Method parse_string

bench/bench.cpp:403–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 {}
402
403 clock_type::duration
404 parse_string(file_item const& fi, std::size_t repeat) const override
405 {
406 auto const start = clock_type::now();
407 parser p( {}, get_parse_options() );
408 while(repeat--)
409 {
410 monotonic_resource mr;
411 storage_ptr sp;
412 if( is_pool_ )
413 sp = &mr;
414 p.reset( std::move(sp) );
415
416 p.write( fi.text.data(), fi.text.size() );
417 auto jv = p.release();
418 (void)jv;
419 }
420 return clock_type::now() - start;
421 }
422
423 clock_type::duration
424 parse_file(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