| 679 | } |
| 680 | |
| 681 | clock_type::duration |
| 682 | serialize_string(file_item const& fi, std::size_t repeat) const override |
| 683 | { |
| 684 | monotonic_resource mr; |
| 685 | storage_ptr sp; |
| 686 | if( is_pool_ ) |
| 687 | sp = &mr; |
| 688 | auto jv = json::parse( fi.text, std::move(sp) ); |
| 689 | |
| 690 | auto const start = clock_type::now(); |
| 691 | std::string out; |
| 692 | while(repeat--) |
| 693 | out = json::serialize(jv); |
| 694 | return clock_type::now() - start; |
| 695 | } |
| 696 | }; |
| 697 | |
| 698 | //---------------------------------------------------------- |
nothing calls this directly
no test coverage detected