MCPcopy Create free account
hub / github.com/boostorg/json / bench

Method bench

bench/bench.cpp:189–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

benchFunction · 0.45

Calls 1

parse_fileFunction · 0.85

Tested by

no test coverage detected