| 802 | {} |
| 803 | |
| 804 | clock_type::duration |
| 805 | parse_string(file_item const& fi, std::size_t repeat) const override |
| 806 | { |
| 807 | using namespace rapidjson; |
| 808 | auto const start = clock_type::now(); |
| 809 | while(repeat--) |
| 810 | { |
| 811 | Allocator alloc; |
| 812 | GenericDocument<UTF8<>, Allocator> d(&alloc); |
| 813 | d.template Parse<rapidjson_impl::parse_flags>( |
| 814 | fi.text.data(), fi.text.size() ); |
| 815 | } |
| 816 | return clock_type::now() - start; |
| 817 | } |
| 818 | |
| 819 | clock_type::duration |
| 820 | parse_file(file_item const& fi, std::size_t repeat) const override |