25 using std::unique_ptr;
36 for (
size_t bufs =
num_bufs; bufs > 1; bufs--) {
47 for (
size_t bufs =
num_bufs; bufs > 1; bufs--) {
56 if (bufPool.size() > 0) {
57 unique_ptr<IOBuf> ret =
std::move(bufPool.back());
70 unique_ptr<IOBuf>
next = head->
pop();
79 for (
size_t bufs =
num_bufs; bufs > 1; bufs--) {
93 printf(
"\nBuffer size: %zu, number of buffers: %zu\n\n", size, num);
152 gflags::ParseCommandLineFlags(&argc, &argv,
true);
static std::unique_ptr< IOBuf > create(std::size_t capacity)
int main(int argc, char **argv)
constexpr detail::Map< Move > move
void reserve(std::size_t minHeadroom, std::size_t minTailroom)
unique_ptr< IOBuf > poolGetIOBuf()
constexpr auto size(C const &c) -> decltype(c.size())
std::unique_ptr< IOBuf > pop()
vector< unique_ptr< IOBuf > > bufPool
void prependChain(std::unique_ptr< IOBuf > &&iobuf)
void poolPutIOBuf(unique_ptr< IOBuf > &&buf)
BENCHMARK(fbFollyGlobalBenchmarkBaseline)
void setNumbers(size_t size, size_t num)
void append(std::size_t amount)