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

Method serialize

bench/bench-conv.cpp:630–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628 }
629
630 clock_type::duration
631 serialize(file_item const& fi, std::size_t repeat) const override
632 {
633 monotonic_resource mr;
634 storage_ptr sp;
635 if(is_pool_)
636 sp = &mr;
637 auto jv = boost::json::parse( fi.text, std::move(sp) );
638 auto data = construct_data(fi.index, jv);
639
640 auto const start = clock_type::now();
641 std::string out;
642 while(repeat--)
643 {
644 mpl::mp_with_index<supported_file_count>(
645 fi.index, convert_to_value{data, jv});
646 out = boost::json::serialize(jv);
647 }
648 return clock_type::now() - start;
649 }
650};
651
652class boost_operator_impl : public base_boost_impl

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected