19 #include <glog/logging.h> 28 using namespace folly;
32 std::array<char, 300> bigBuf;
47 bigBuf.data(), bigBuf.size(),
"%o",
static_cast<unsigned int>(iters));
56 static_cast<unsigned int>(iters));
65 bigBuf.data(), bigBuf.size(),
"%x",
static_cast<unsigned int>(iters));
80 for (
int i = -1000;
i < 1000;
i++) {
81 snprintf(bigBuf.data(), bigBuf.size(),
"%d",
i);
88 for (
int i = -1000;
i < 1000;
i++) {
95 for (
int i = -1000;
i < 1000;
i++) {
102 template <
size_t... Indexes>
104 static_assert(20 ==
sizeof...(Indexes),
"Must have exactly 20 indexes");
112 (i +
static_cast<int>(Indexes))...);
117 for (
int i = -100;
i < 100;
i++) {
123 template <
size_t... Indexes>
125 static_assert(20 ==
sizeof...(Indexes),
"Must have exactly 20 indexes");
131 (i + static_cast<int>(Indexes))...);
138 memcpy(p, sp.data(), sp.size());
143 for (
int i = -100;
i < 100;
i++) {
156 for (
int i = 0;
i < 1000; ++
i) {
172 for (
int i = 0;
i < 1000; ++
i) {
179 format(
"{} {}", -
i, -
i - 1).fbstr());
188 for (
int i = 0;
i < 1000; ++
i) {
205 auto const& shortString = getShortString();
208 suspender.
dismissing([&] { out = shortString; });
214 auto const& shortString = getShortString();
223 auto const& shortString = getShortString();
232 auto const& shortString = getShortString();
241 auto const& shortString = getShortString();
252 auto const& longString = getLongString();
255 suspender.
dismissing([&] { out = longString; });
261 auto const& longString = getLongString();
270 auto const& longString = getLongString();
279 auto const& longString = getLongString();
288 auto const& longString = getLongString();
331 init(&argc, &argv,
true);
std::string sformat(StringPiece fmt, Args &&...args)
size_t uintToHexLower(char *buffer, size_t bufLen, Uint v)
size_t uintToOctal(char *buffer, size_t bufLen, Uint v)
—— Concurrent Priority Queue Implementation ——
const size_t kMaxHexLength
void init(int *argc, char ***argv, bool removeFlags)
make_integer_sequence< std::size_t, Size > make_index_sequence
void toAppend(char value, Tgt *result)
BENCHMARK(fbFollyGlobalBenchmarkBaseline)
auto dismissing(F f) -> invoke_result_t< F >
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
basic_fbstring & append(const basic_fbstring &str)
const size_t kMaxOctalLength