MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeRandomInternedStrings

Function makeRandomInternedStrings

valdi/test/benchmark/utils/benchmark_utils.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::vector<StringBox> makeRandomInternedStrings(StringCache& stringCache, size_t numberOfStrings, size_t strLength) {
43 std::vector<StringBox> out;
44
45 for (size_t i = 0; i < numberOfStrings; i++) {
46 out.emplace_back(stringCache.makeString(makeRandomString(strLength)));
47 }
48
49 return out;
50}

Callers 8

CreateUnorderedMapFunction · 0.85
CreateFlatMapFunction · 0.85
CreateFlatMapWithReserveFunction · 0.85
QueryUnorderedMapFunction · 0.85
QueryFlatMapFunction · 0.85
IterateUnorderedMapFunction · 0.85
IterateFlatMapFunction · 0.85

Calls 2

makeRandomStringFunction · 0.85
makeStringMethod · 0.80

Tested by

no test coverage detected