proxygen
folly::conv_bench_detail Namespace Reference

Variables

uint64_t uint64Num []
 
int64_t int64Pos []
 
int64_t int64Neg []
 
size_t bigInt = 11424545345345
 
size_t smallInt = 104
 
char someString [] = "this is some nice string"
 
char otherString [] = "this is a long string, so it's not so nice"
 
char reallyShort [] = "meh"
 
std::string stdString = "std::strings are very nice"
 
float fValue = 1.2355f
 
double dValue = 345345345.435
 
int8_t i8s []
 
uint8_t u8s []
 
int16_t i16s []
 
uint16_t u16s []
 
int32_t i32s []
 
uint32_t u32s []
 
int64_t i64s []
 
uint64_t u64s []
 
std::array< int, 4 > int2ScharGood {{-128, 127, 0, -50}}
 
std::array< int, 4 > int2ScharBad {{-129, 128, 255, 10000}}
 
std::array< int, 4 > int2UcharGood {{0, 1, 254, 255}}
 
std::array< int, 4 > int2UcharBad {{-128, -1000, 256, -1}}
 
std::array< long long, 4 > ll2SintOrFloatGood {{-2, -1, 0, 1}}
 
std::array< long long, 4 > ll2SintOrFloatBad
 
std::array< long long, 4 > ll2UintGood {{1, 2, 3, 4}}
 
std::array< long long, 4 > ll2UintBad {{-1, -2, -3, -4}}
 
std::array< double, 4 > double2FloatGood {{1.0, 1.25, 2.5, 1000.0}}
 
std::array< double, 4 > double2FloatBad {{1e100, 1e101, 1e102, 1e103}}
 
std::array< double, 4 > double2IntGood {{1.0, 10.0, 100.0, 1000.0}}
 
std::array< double, 4 > double2IntBad {{1e100, 1.25, 2.5, 100.00001}}
 

Variable Documentation

size_t folly::conv_bench_detail::bigInt = 11424545345345

Definition at line 509 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

std::array<double, 4> folly::conv_bench_detail::double2FloatBad {{1e100, 1e101, 1e102, 1e103}}

Definition at line 1015 of file ConvBenchmark.cpp.

std::array<double, 4> folly::conv_bench_detail::double2FloatGood {{1.0, 1.25, 2.5, 1000.0}}

Definition at line 1014 of file ConvBenchmark.cpp.

std::array<double, 4> folly::conv_bench_detail::double2IntBad {{1e100, 1.25, 2.5, 100.00001}}

Definition at line 1017 of file ConvBenchmark.cpp.

std::array<double, 4> folly::conv_bench_detail::double2IntGood {{1.0, 10.0, 100.0, 1000.0}}

Definition at line 1016 of file ConvBenchmark.cpp.

double folly::conv_bench_detail::dValue = 345345345.435

Definition at line 516 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

float folly::conv_bench_detail::fValue = 1.2355f

Definition at line 515 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

int16_t folly::conv_bench_detail::i16s[]
Initial value:
= {
-(static_cast<int16_t>(1) << 8),
static_cast<int16_t>(1) << 12,
-(static_cast<int16_t>(1) << 14),
}

Definition at line 557 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

int32_t folly::conv_bench_detail::i32s[]
Initial value:
= {
-(static_cast<int32_t>(1) << 16),
static_cast<int32_t>(1) << 25,
-(static_cast<int32_t>(1) << 30),
}

Definition at line 569 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

int64_t folly::conv_bench_detail::i64s[]
Initial value:
= {
-(static_cast<int64_t>(1) << 32),
static_cast<int64_t>(1) << 50,
-(static_cast<int64_t>(1) << 62),
}

Definition at line 581 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

int8_t folly::conv_bench_detail::i8s[]
Initial value:
= {
-(static_cast<int8_t>(1) << 4),
static_cast<int8_t>(1) << 5,
-(static_cast<int8_t>(1) << 6),
}

Definition at line 545 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

std::array<int, 4> folly::conv_bench_detail::int2ScharBad {{-129, 128, 255, 10000}}

Definition at line 1000 of file ConvBenchmark.cpp.

std::array<int, 4> folly::conv_bench_detail::int2ScharGood {{-128, 127, 0, -50}}

Definition at line 999 of file ConvBenchmark.cpp.

std::array<int, 4> folly::conv_bench_detail::int2UcharBad {{-128, -1000, 256, -1}}

Definition at line 1002 of file ConvBenchmark.cpp.

std::array<int, 4> folly::conv_bench_detail::int2UcharGood {{0, 1, 254, 255}}

Definition at line 1001 of file ConvBenchmark.cpp.

int64_t folly::conv_bench_detail::int64Neg[]
Initial value:
= {
0,
-1LL,
-12LL,
-123LL,
-1234LL,
-12345LL,
-123456LL,
-1234567LL,
-12345678LL,
-123456789LL,
-1234567890LL,
-12345678901LL,
-123456789012LL,
-1234567890123LL,
-12345678901234LL,
-123456789012345LL,
-1234567890123456LL,
-12345678901234567LL,
-123456789012345678LL,
-1234567890123456789LL,
}

Definition at line 92 of file ConvBenchmark.cpp.

Referenced by i64ToStringFollyMeasureNeg().

int64_t folly::conv_bench_detail::int64Pos[]
Initial value:
= {
0,
1LL,
12LL,
123LL,
1234LL,
12345LL,
123456LL,
1234567LL,
12345678LL,
123456789LL,
1234567890LL,
12345678901LL,
123456789012LL,
1234567890123LL,
12345678901234LL,
123456789012345LL,
1234567890123456LL,
12345678901234567LL,
123456789012345678LL,
1234567890123456789LL,
}

Definition at line 69 of file ConvBenchmark.cpp.

Referenced by i64ToStringFollyMeasurePos().

std::array<long long, 4> folly::conv_bench_detail::ll2SintOrFloatBad
std::array<long long, 4> folly::conv_bench_detail::ll2SintOrFloatGood {{-2, -1, 0, 1}}

Definition at line 1004 of file ConvBenchmark.cpp.

std::array<long long, 4> folly::conv_bench_detail::ll2UintBad {{-1, -2, -3, -4}}

Definition at line 1012 of file ConvBenchmark.cpp.

std::array<long long, 4> folly::conv_bench_detail::ll2UintGood {{1, 2, 3, 4}}

Definition at line 1011 of file ConvBenchmark.cpp.

char folly::conv_bench_detail::otherString[] = "this is a long string, so it's not so nice"

Definition at line 512 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

char folly::conv_bench_detail::reallyShort[] = "meh"

Definition at line 513 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

size_t folly::conv_bench_detail::smallInt = 104

Definition at line 510 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

char folly::conv_bench_detail::someString[] = "this is some nice string"

Definition at line 511 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

std::string folly::conv_bench_detail::stdString = "std::strings are very nice"

Definition at line 514 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

uint16_t folly::conv_bench_detail::u16s[]
Initial value:
= {
static_cast<uint16_t>(1) << 8,
static_cast<uint16_t>(1) << 12,
static_cast<uint16_t>(1) << 15,
}

Definition at line 563 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

uint32_t folly::conv_bench_detail::u32s[]
Initial value:
= {
static_cast<uint32_t>(1) << 16,
static_cast<uint32_t>(1) << 25,
static_cast<uint32_t>(1) << 31,
}

Definition at line 575 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

uint64_t folly::conv_bench_detail::u64s[]
Initial value:
= {
static_cast<uint64_t>(1) << 32,
static_cast<uint64_t>(1) << 50,
static_cast<uint64_t>(1) << 63,
}

Definition at line 587 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

uint8_t folly::conv_bench_detail::u8s[]
Initial value:
= {
static_cast<uint8_t>(1) << 4,
static_cast<uint8_t>(1) << 5,
static_cast<uint8_t>(1) << 7,
}

Definition at line 551 of file ConvBenchmark.cpp.

Referenced by BENCHMARK().

uint64_t folly::conv_bench_detail::uint64Num[]
Initial value:
= {
0,
1ULL,
12ULL,
123ULL,
1234ULL,
12345ULL,
123456ULL,
1234567ULL,
12345678ULL,
123456789ULL,
1234567890ULL,
12345678901ULL,
123456789012ULL,
1234567890123ULL,
12345678901234ULL,
123456789012345ULL,
1234567890123456ULL,
12345678901234567ULL,
123456789012345678ULL,
1234567890123456789ULL,
12345678901234567890ULL,
}

Definition at line 45 of file ConvBenchmark.cpp.

Referenced by u2aAppendClassicBM(), u2aAppendFollyBM(), u64ToAsciiClassicBM(), u64ToAsciiFollyBM(), u64ToAsciiTableBM(), u64ToStringClibMeasure(), and u64ToStringFollyMeasure().