35 testEmpty<Reader, Encoder>();
38 template <
size_t kSkipQuantum,
size_t kForwardQuantum>
65 doTestAll<128, 128>();
72 std::vector<uint32_t>
data;
86 order.resize(data.size());
87 std::iota(order.begin(), order.end(), size_t());
88 std::shuffle(order.begin(), order.end(), gen);
102 bmNext<BitVectorReader<bm::Encoder, decltype(instructions)>>(
109 bmSkip<BitVectorReader<bm::Encoder, decltype(instructions)>>(
125 bmJump<BitVectorReader<bm::Encoder, decltype(instructions)>>(
134 bmSkipTo<BitVectorReader<bm::Encoder, decltype(instructions)>>(
150 bmJumpTo<BitVectorReader<bm::Encoder, decltype(instructions)>>(
173 ============================================================================
175 ============================================================================
184 Jump_ForwardQ128 133.30ns 7.50M
185 ----------------------------------------------------------------------------
193 JumpTo_SkipQ128 23.10ns 43.30M
194 ----------------------------------------------------------------------------
195 Encode_10 344.50ns 2.90M
197 ============================================================================
203 gflags::ParseCommandLineFlags(&argc, &argv,
true);
206 if (ret == 0 && FLAGS_benchmark) {
std::vector< uint32_t > data
auto dispatchInstructions(F &&f) -> decltype(f(std::declval< instructions::Default >()))
unique_ptr< IOBuf > encode(vector< HPACKHeader > &headers, HPACKEncoder &encoder)
size_t SkipTo_SkipQ128(size_t iters, size_t logAvgSkip)
BitVectorEncoder< uint32_t, uint32_t, 128, 128 > Encoder
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
std::vector< uint32_t > encodeSmallData
std::vector< uint32_t > encodeLargeData
auto begin(TestAdlIterable &instance)
std::vector< uint32_t > generateRandomList(size_t n, uint32_t maxId, URNG &&g)
—— Concurrent Priority Queue Implementation ——
void init(int *argc, char ***argv, bool removeFlags)
static MutableCompressedList encode(RandomAccessIterator begin, RandomAccessIterator end)
std::vector< size_t > order
auto end(TestAdlIterable &instance)
std::vector< uint32_t > generateSeqList(uint32_t minId, uint32_t maxId, uint32_t step=1)
constexpr auto data(C &c) -> decltype(c.data())
Encoder::MutableCompressedList list
int main(int argc, char **argv)
TEST_F(AsyncSSLSocketWriteTest, write_coalescing1)
BENCHMARK(fbFollyGlobalBenchmarkBaseline)
auto free() -> decltype(::free(T(nullptr)))
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
size_t Skip_ForwardQ128(size_t iters, size_t logAvgSkip)
#define BENCHMARK_NAMED_PARAM_MULTI(name, param_name,...)
std::chrono::nanoseconds time()