MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / test_objcache

Function test_objcache

common/test/perf_objcache.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template <template <class, class> class OC>
56void test_objcache(OC<std::string, std::string *> &oc, const char *name) {
57 std::vector<photon::join_handle *> jhs;
58 LOG_INFO("Query to ", name);
59 for (int i = 0; i < 4; i++)
60 jhs.emplace_back(
61 photon::thread_enable_join(photon::thread_create(task<OC>, &oc)));
62 for (auto &x : jhs) photon::thread_join(x);
63}
64
65template <template <class, class> class OC>
66void test(const char *name) {

Callers

nothing calls this directly

Calls 4

thread_enable_joinFunction · 0.85
thread_createFunction · 0.85
thread_joinFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected