![]() |
Project
|
benchmarks streaming out data from rANS state to memory More...
#include "rANS/internal/common/defines.h"
#include <vector>
#include <cstring>
#include <random>
#include <algorithm>
#include <iterator>
#include <benchmark/benchmark.h>
#include "rANS/factory.h"
#include "rANS/histogram.h"
#include "rANS/internal/common/utils.h"
#include "rANS/internal/common/simdtypes.h"
#include "rANS/internal/common/simdops.h"
#include "rANS/internal/encode/simdKernel.h"
Go to the source code of this file.
Classes | |
class | RenormingData< source_T > |
struct | Fixture< source_T > |
Typedefs | |
using | count_t = uint32_t |
using | ransState_t = uint64_t |
using | stream_t = uint32_t |
Functions | |
template<typename T > | |
const auto & | getData () |
template<typename stream_IT > | |
std::tuple< ransState_t, stream_IT > | renorm (ransState_t state, stream_IT outputIter, count_t frequency, size_t symbolTablePrecision) |
BENCHMARK_REGISTER_F (Fixture, renorm_8) | |
BENCHMARK_REGISTER_F (Fixture, renorm_16) | |
BENCHMARK_REGISTER_F (Fixture, renorm_32) | |
BENCHMARK_MAIN () | |
Variables | |
constexpr size_t | MessageSize = 1ull << 22 |
constexpr size_t | LowerBound = 1ul << 20 |
constexpr size_t | StreamBits = toBits<stream_t>() |
const RenormingData< uint8_t > | Data8 (MessageSize) |
const RenormingData< uint16_t > | Data16 (MessageSize) |
const RenormingData< uint32_t > | Data32 (MessageSize) |
benchmark::State & | st |
benchmarks streaming out data from rANS state to memory
Definition in file bench_ransStreaming.cxx.
using count_t = uint32_t |
Definition at line 41 of file bench_ransStreaming.cxx.
using ransState_t = uint64_t |
Definition at line 42 of file bench_ransStreaming.cxx.
using stream_t = uint32_t |
Definition at line 43 of file bench_ransStreaming.cxx.
BENCHMARK_MAIN | ( | ) |
BENCHMARK_REGISTER_F | ( | Fixture | , |
renorm_16 | |||
) |
BENCHMARK_REGISTER_F | ( | Fixture | , |
renorm_32 | |||
) |
BENCHMARK_REGISTER_F | ( | Fixture | , |
renorm_8 | |||
) |
const auto & getData | ( | ) |
Definition at line 99 of file bench_ransStreaming.cxx.
|
inline |
Definition at line 186 of file bench_ransStreaming.cxx.
const RenormingData< uint16_t > Data16(MessageSize) | ( | MessageSize | ) |
const RenormingData< uint32_t > Data32(MessageSize) | ( | MessageSize | ) |
const RenormingData< uint8_t > Data8(MessageSize) | ( | MessageSize | ) |
|
inlineconstexpr |
Definition at line 50 of file bench_ransStreaming.cxx.
|
inlineconstexpr |
Definition at line 49 of file bench_ransStreaming.cxx.
benchmark::State& st |
Definition at line 251 of file bench_ransStreaming.cxx.
|
inlineconstexpr |
Definition at line 51 of file bench_ransStreaming.cxx.