MCPcopy Create free account
hub / github.com/acl-dev/acl / test_mem

Function test_mem

lib_acl_cpp/samples/string/string5/main.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void test_mem(int max)
57{
58 size_t max_len = 1024 * 1024 * 500, init_len = 4096;
59 acl::string buf(init_len);
60 buf.set_max(max_len);
61
62 ACL_METER_TIME(">> begin acl::string");
63
64 for (int i = 0; i < max; i++)
65 {
66 test_append(buf);
67 }
68
69 ACL_METER_TIME(">> end acl::string");
70}
71
72static void usage(const char* procname)
73{

Callers 1

mainFunction · 0.70

Calls 2

set_maxMethod · 0.80
test_appendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…