proxygen
|
#include <folly/hash/Checksum.h>
#include <boost/crc.hpp>
#include <folly/Benchmark.h>
#include <folly/Random.h>
#include <folly/hash/Hash.h>
#include <folly/hash/detail/ChecksumDetail.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (Checksum, crc32c_software) | |
TEST (Checksum, crc32c_continuation_software) | |
TEST (Checksum, crc32c_hardware) | |
TEST (Checksum, crc32c_hardware_eq) | |
TEST (Checksum, crc32c_continuation_hardware) | |
TEST (Checksum, crc32c_autodetect) | |
TEST (Checksum, crc32c_continuation_autodetect) | |
TEST (Checksum, crc32) | |
TEST (Checksum, crc32_continuation) | |
TEST (Checksum, crc32_type) | |
TEST (Checksum, crc32_combine) | |
TEST (Checksum, crc32c_combine) | |
void | benchmarkHardwareCRC32C (unsigned long iters, size_t blockSize) |
void | benchmarkSoftwareCRC32C (unsigned long iters, size_t blockSize) |
void | benchmarkHardwareCRC32 (unsigned long iters, size_t blockSize) |
void | benchmarkSoftwareCRC32 (unsigned long iters, size_t blockSize) |
void | benchmarkCombineHardwareCrc32 (unsigned long iters, size_t blockSize) |
void | benchmarkCombineSoftwareLinear (unsigned long iters, size_t blockSize) |
void | benchmarkCombineHardwareCrc32c (unsigned long iters, size_t blockSize) |
BENCHMARK (crc32c_hardware_1KB_block, iters) | |
BENCHMARK (crc32c_software_1KB_block, iters) | |
BENCHMARK (crc32_hardware_1KB_block, iters) | |
BENCHMARK (crc32_software_1KB_block, iters) | |
BENCHMARK_DRAW_LINE () | |
BENCHMARK (crc32c_hardware_64KB_block, iters) | |
BENCHMARK (crc32c_software_64KB_block, iters) | |
BENCHMARK (crc32_hardware_64KB_block, iters) | |
BENCHMARK (crc32_software_64KB_block, iters) | |
BENCHMARK (crc32c_hardware_512KB_block, iters) | |
BENCHMARK (crc32c_software_512KB_block, iters) | |
BENCHMARK (crc32_hardware_512KB_block, iters) | |
BENCHMARK (crc32_software_512KB_block, iters) | |
BENCHMARK (crc32_combine_linear_512KB_block, iters) | |
BENCHMARK (crc32_combine_512KB_block, iters) | |
BENCHMARK (crc32c_combine_512KB_block, iters) | |
int | main (int argc, char **argv) |
BENCHMARK | ( | crc32c_hardware_1KB_block | , |
iters | |||
) |
Definition at line 306 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32C().
BENCHMARK | ( | crc32c_software_1KB_block | , |
iters | |||
) |
Definition at line 310 of file ChecksumTest.cpp.
References benchmarkSoftwareCRC32C().
BENCHMARK | ( | crc32_hardware_1KB_block | , |
iters | |||
) |
Definition at line 314 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32().
BENCHMARK | ( | crc32_software_1KB_block | , |
iters | |||
) |
Definition at line 318 of file ChecksumTest.cpp.
References BENCHMARK_DRAW_LINE(), and benchmarkSoftwareCRC32().
BENCHMARK | ( | crc32c_hardware_64KB_block | , |
iters | |||
) |
Definition at line 325 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32C().
BENCHMARK | ( | crc32c_software_64KB_block | , |
iters | |||
) |
Definition at line 329 of file ChecksumTest.cpp.
References benchmarkSoftwareCRC32C().
BENCHMARK | ( | crc32_hardware_64KB_block | , |
iters | |||
) |
Definition at line 333 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32().
BENCHMARK | ( | crc32_software_64KB_block | , |
iters | |||
) |
Definition at line 337 of file ChecksumTest.cpp.
References BENCHMARK_DRAW_LINE(), and benchmarkSoftwareCRC32().
BENCHMARK | ( | crc32c_hardware_512KB_block | , |
iters | |||
) |
Definition at line 344 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32C().
BENCHMARK | ( | crc32c_software_512KB_block | , |
iters | |||
) |
Definition at line 348 of file ChecksumTest.cpp.
References benchmarkSoftwareCRC32C().
BENCHMARK | ( | crc32_hardware_512KB_block | , |
iters | |||
) |
Definition at line 352 of file ChecksumTest.cpp.
References benchmarkHardwareCRC32().
BENCHMARK | ( | crc32_software_512KB_block | , |
iters | |||
) |
Definition at line 356 of file ChecksumTest.cpp.
References BENCHMARK_DRAW_LINE(), and benchmarkSoftwareCRC32().
BENCHMARK | ( | crc32_combine_linear_512KB_block | , |
iters | |||
) |
Definition at line 362 of file ChecksumTest.cpp.
References benchmarkCombineSoftwareLinear().
BENCHMARK | ( | crc32_combine_512KB_block | , |
iters | |||
) |
Definition at line 366 of file ChecksumTest.cpp.
References benchmarkCombineHardwareCrc32().
BENCHMARK | ( | crc32c_combine_512KB_block | , |
iters | |||
) |
Definition at line 370 of file ChecksumTest.cpp.
References benchmarkCombineHardwareCrc32c().
BENCHMARK_DRAW_LINE | ( | ) |
Referenced by BENCHMARK().
void benchmarkCombineHardwareCrc32 | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 267 of file ChecksumTest.cpp.
References folly::crc32_combine(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkCombineHardwareCrc32c | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 293 of file ChecksumTest.cpp.
References folly::crc32c_combine(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkCombineSoftwareLinear | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 278 of file ChecksumTest.cpp.
References folly::crc32c(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkHardwareCRC32 | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 246 of file ChecksumTest.cpp.
References folly::detail::crc32_hw(), folly::detail::crc32_hw_supported(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkHardwareCRC32C | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 225 of file ChecksumTest.cpp.
References folly::detail::crc32c_hw(), folly::detail::crc32c_hw_supported(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkSoftwareCRC32 | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 259 of file ChecksumTest.cpp.
References folly::detail::crc32_sw(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
void benchmarkSoftwareCRC32C | ( | unsigned long | iters, |
size_t | blockSize | ||
) |
Definition at line 238 of file ChecksumTest.cpp.
References folly::detail::crc32c_sw(), folly::doNotOptimizeAway(), i, and uint32_t.
Referenced by BENCHMARK().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 374 of file ChecksumTest.cpp.
References buffer(), folly::test::end(), folly::hash::fnv64_buf(), testing::InitGoogleTest(), RUN_ALL_TESTS(), folly::runBenchmarks(), uint64_t, and uint8_t.
TEST | ( | Checksum | , |
crc32c_software | |||
) |
Definition at line 108 of file ChecksumTest.cpp.
References folly::detail::crc32c_sw().
TEST | ( | Checksum | , |
crc32c_continuation_software | |||
) |
Definition at line 112 of file ChecksumTest.cpp.
References folly::detail::crc32c_sw().
TEST | ( | Checksum | , |
crc32c_hardware | |||
) |
Definition at line 116 of file ChecksumTest.cpp.
References folly::detail::crc32c_hw(), and folly::detail::crc32c_hw_supported().
TEST | ( | Checksum | , |
crc32c_hardware_eq | |||
) |
Definition at line 125 of file ChecksumTest.cpp.
References folly::detail::crc32c_hw(), folly::detail::crc32c_hw_supported(), folly::detail::crc32c_sw(), EXPECT_EQ, and i.
TEST | ( | Checksum | , |
crc32c_continuation_hardware | |||
) |
Definition at line 138 of file ChecksumTest.cpp.
References folly::detail::crc32c_hw(), and folly::detail::crc32c_hw_supported().
TEST | ( | Checksum | , |
crc32c_autodetect | |||
) |
Definition at line 147 of file ChecksumTest.cpp.
References folly::crc32c().
TEST | ( | Checksum | , |
crc32c_continuation_autodetect | |||
) |
Definition at line 151 of file ChecksumTest.cpp.
References folly::crc32c().
TEST | ( | Checksum | , |
crc32 | |||
) |
Definition at line 155 of file ChecksumTest.cpp.
References folly::detail::crc32_hw(), folly::detail::crc32_sw(), folly::detail::crc32c_hw_supported(), EXPECT_EQ, and uint32_t.
TEST | ( | Checksum | , |
crc32_continuation | |||
) |
Definition at line 171 of file ChecksumTest.cpp.
References folly::detail::crc32_hw(), folly::detail::crc32_sw(), folly::detail::crc32c_hw_supported(), EXPECT_EQ, and uint32_t.
TEST | ( | Checksum | , |
crc32_type | |||
) |
Definition at line 198 of file ChecksumTest.cpp.
TEST | ( | Checksum | , |
crc32_combine | |||
) |
Definition at line 203 of file ChecksumTest.cpp.
References folly::crc32(), folly::crc32_combine(), EXPECT_EQ, and folly::Random::rand64().
TEST | ( | Checksum | , |
crc32c_combine | |||
) |
Definition at line 214 of file ChecksumTest.cpp.
References folly::crc32c(), folly::crc32c_combine(), EXPECT_EQ, and folly::Random::rand64().