| 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 |