| 54 | } |
| 55 | |
| 56 | static 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 | |
| 72 | static void usage(const char* procname) |
| 73 | { |
no test coverage detected
searching dependent graphs…