MCPcopy Create free account
hub / github.com/facebook/CacheLib / getInput

Function getInput

cachelib/benchmarks/SListBench.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67using SListImpl = SList<SListNode, &SListNode::hook_>;
68
69vector<SListNode> getInput(unsigned n) noexcept {
70 vector<SListNode> input;
71 input.reserve(n);
72 for (unsigned i = 0; i < n; i++) {
73 input.emplace_back();
74 }
75 return input;
76}
77
78BENCHMARK(VectorInsert, n) {
79 BenchmarkSuspender suspender;

Callers 2

BENCHMARKFunction · 0.85
BENCHMARK_RELATIVEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected