| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected