| 906 | } |
| 907 | |
| 908 | clock_type::duration |
| 909 | serialize_string(file_item const& fi, std::size_t repeat) const override |
| 910 | { |
| 911 | auto jv = nlohmann::json::parse( fi.text.begin(), fi.text.end() ); |
| 912 | |
| 913 | auto const start = clock_type::now(); |
| 914 | while(repeat--) |
| 915 | auto st = jv.dump(); |
| 916 | return clock_type::now() - start; |
| 917 | } |
| 918 | }; |
| 919 | #endif // BOOST_JSON_HAS_NLOHMANN_JSON |
| 920 |