proxygen
|
#include <folly/json.h>
#include <folly/Benchmark.h>
#include <folly/Conv.h>
#include <folly/FileUtil.h>
#include <folly/Range.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (Json, StripComments) | |
BENCHMARK (jsonSerialize, iters) | |
BENCHMARK (jsonSerializeWithNonAsciiEncoding, iters) | |
BENCHMARK (jsonSerializeWithUtf8Validation, iters) | |
BENCHMARK (jsonSerializeAsciiWithUtf8Validation, iters) | |
BENCHMARK (jsonSerializeWithExtraUnicodeEscapes, iters) | |
BENCHMARK (parseSmallStringWithUtf, iters) | |
BENCHMARK (parseNormalString, iters) | |
BENCHMARK (parseBigString, iters) | |
BENCHMARK (toJson, iters) | |
int | main (int argc, char **argv) |
Variables | |
constexpr folly::StringPiece | kLargeAsciiString |
constexpr folly::StringPiece | kLargeNonAsciiString |
constexpr folly::StringPiece | kLargeAsciiStringWithSpecialChars |
BENCHMARK | ( | jsonSerialize | , |
iters | |||
) |
Definition at line 82 of file JsonOtherTest.cpp.
References i, kLargeNonAsciiString, and folly::json::serialize().
BENCHMARK | ( | jsonSerializeWithNonAsciiEncoding | , |
iters | |||
) |
Definition at line 91 of file JsonOtherTest.cpp.
References folly::json::serialization_opts::encode_non_ascii, i, kLargeNonAsciiString, and folly::json::serialize().
BENCHMARK | ( | jsonSerializeWithUtf8Validation | , |
iters | |||
) |
Definition at line 102 of file JsonOtherTest.cpp.
References i, kLargeNonAsciiString, folly::json::serialize(), and folly::json::serialization_opts::validate_utf8.
BENCHMARK | ( | jsonSerializeAsciiWithUtf8Validation | , |
iters | |||
) |
Definition at line 113 of file JsonOtherTest.cpp.
References i, kLargeAsciiString, folly::json::serialize(), and folly::json::serialization_opts::validate_utf8.
BENCHMARK | ( | jsonSerializeWithExtraUnicodeEscapes | , |
iters | |||
) |
Definition at line 124 of file JsonOtherTest.cpp.
References folly::json::buildExtraAsciiToEscapeBitmap(), folly::json::serialization_opts::extra_ascii_to_escape_bitmap, i, kLargeAsciiStringWithSpecialChars, and folly::json::serialize().
BENCHMARK | ( | parseSmallStringWithUtf | , |
iters | |||
) |
BENCHMARK | ( | parseNormalString | , |
iters | |||
) |
BENCHMARK | ( | parseBigString | , |
iters | |||
) |
Definition at line 148 of file JsonOtherTest.cpp.
References i, kLargeAsciiString, and folly::parseJson().
BENCHMARK | ( | toJson | , |
iters | |||
) |
Definition at line 156 of file JsonOtherTest.cpp.
References i, folly::parseJson(), and folly::toJson().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 165 of file JsonOtherTest.cpp.
References testing::InitGoogleTest(), RUN_ALL_TESTS(), and folly::runBenchmarks().
TEST | ( | Json | , |
StripComments | |||
) |
Definition at line 64 of file JsonOtherTest.cpp.
References EXPECT_EQ, FAIL, folly::readFile(), string, and folly::json::stripComments().
constexpr folly::StringPiece kLargeAsciiString |
Definition at line 30 of file JsonOtherTest.cpp.
Referenced by BENCHMARK().
constexpr folly::StringPiece kLargeAsciiStringWithSpecialChars |
Definition at line 55 of file JsonOtherTest.cpp.
Referenced by BENCHMARK().
constexpr folly::StringPiece kLargeNonAsciiString |
Definition at line 43 of file JsonOtherTest.cpp.
Referenced by BENCHMARK().