| 187 | virtual ~any_impl() = default; |
| 188 | |
| 189 | clock_type::duration |
| 190 | bench(string_view verb, file_item const& fi, std::size_t repeat) const |
| 191 | { |
| 192 | |
| 193 | if(verb == "Parse") |
| 194 | { |
| 195 | if( with_file_io_ ) |
| 196 | return parse_file(fi, repeat); |
| 197 | else |
| 198 | return parse_string(fi, repeat); |
| 199 | } |
| 200 | else |
| 201 | { |
| 202 | BOOST_ASSERT( verb == "Serialize" ); |
| 203 | if( with_file_io_ ) |
| 204 | return skip(); |
| 205 | else |
| 206 | return serialize_string(fi, repeat); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | string_view |
| 211 | name() const noexcept |