proxygen
|
#include <proxygen/lib/http/codec/compress/test/TestUtil.h>
#include <proxygen/lib/http/codec/compress/test/TestStreamingCallback.h>
#include <folly/Benchmark.h>
#include <folly/Range.h>
#include <algorithm>
Go to the source code of this file.
Functions | |
unique_ptr< IOBuf > | encode (vector< HPACKHeader > &headers, HPACKEncoder &encoder) |
void | encodeDecode (vector< HPACKHeader > &headers, HPACKEncoder &encoder, HPACKDecoder &decoder) |
vector< HPACKHeader > | getHeaders () |
void | encodeBench (int reencodes, int iters) |
void | encodeDecodeBench (int reencodes, int iters) |
BENCHMARK (Encode, iters) | |
BENCHMARK (Encode1, iters) | |
BENCHMARK (Encode2, iters) | |
BENCHMARK (EncodeDecode, iters) | |
BENCHMARK (EncodeDecode1, iters) | |
BENCHMARK (EncodeDecode2, iters) | |
int | main (int argc, char **argv) |
BENCHMARK | ( | Encode | , |
iters | |||
) |
BENCHMARK | ( | Encode1 | , |
iters | |||
) |
BENCHMARK | ( | Encode2 | , |
iters | |||
) |
BENCHMARK | ( | EncodeDecode | , |
iters | |||
) |
BENCHMARK | ( | EncodeDecode1 | , |
iters | |||
) |
BENCHMARK | ( | EncodeDecode2 | , |
iters | |||
) |
unique_ptr<IOBuf> encode | ( | vector< HPACKHeader > & | headers, |
HPACKEncoder & | encoder | ||
) |
Definition at line 22 of file HPACKBenchmark.cpp.
References proxygen::HPACKEncoder::encode().
Referenced by BENCHMARK(), folly::AtomicStruct< folly::IndexedMemPool::TaggedPtr, Atom >::compare_exchange_strong(), folly::AtomicStruct< folly::IndexedMemPool::TaggedPtr, Atom >::compare_exchange_weak(), encodeBench(), encodeDecode(), fizz::test::HandshakeTypesTest::encodeHex(), fizz::test::ZlibCertificateCompressorTest::encodeHex(), fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType >::encrypt(), folly::AtomicStruct< folly::IndexedMemPool::TaggedPtr, Atom >::exchange(), bm::init(), folly::AtomicStruct< folly::IndexedMemPool::TaggedPtr, Atom >::operator=(), folly::AtomicStruct< folly::IndexedMemPool::TaggedPtr, Atom >::store(), TEST(), fizz::server::test::TEST(), TEST_F(), fizz::test::TEST_F(), folly::compression::testAll(), folly::compression::testEmpty(), fizz::test::TYPED_TEST(), proxygen::Base64::urlEncode(), proxygen::HPACKCodec::~HPACKCodec(), proxygen::huffman::HuffTree::~HuffTree(), and proxygen::QPACKCodec::~QPACKCodec().
void encodeBench | ( | int | reencodes, |
int | iters | ||
) |
Definition at line 60 of file HPACKBenchmark.cpp.
Referenced by BENCHMARK().
void encodeDecode | ( | vector< HPACKHeader > & | headers, |
HPACKEncoder & | encoder, | ||
HPACKDecoder & | decoder | ||
) |
Definition at line 26 of file HPACKBenchmark.cpp.
References c, proxygen::HPACKDecoder::decodeStreaming(), encode(), and proxygen::TestStreamingCallback::hasError().
Referenced by encodeDecodeBench(), isLowercase(), TEST_F(), and TEST_P().
void encodeDecodeBench | ( | int | reencodes, |
int | iters | ||
) |
Definition at line 70 of file HPACKBenchmark.cpp.
References encodeDecode(), and i.
Referenced by BENCHMARK().
vector<HPACKHeader> getHeaders | ( | ) |
Definition at line 37 of file HPACKBenchmark.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |