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

Function makeRandomStrings

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

Source from the content-addressed store, hash-verified

30}
31
32std::vector<std::string> makeRandomStrings(size_t strLength) {
33 std::vector<std::string> out;
34
35 for (size_t i = 0; i < 10; i++) {
36 out.emplace_back(makeRandomString(strLength));
37 }
38
39 return out;
40}
41
42std::vector<StringBox> makeRandomInternedStrings(StringCache& stringCache, size_t numberOfStrings, size_t strLength) {
43 std::vector<StringBox> out;

Callers 8

RegularStringComparisonFunction · 0.85
InternedStringComparisonFunction · 0.85

Calls 1

makeRandomStringFunction · 0.85

Tested by

no test coverage detected