![]() |
Project
|
#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 "helpers.h"
Go to the source code of this file.
Classes | |
class | SourceMessageProxyUniform< source_T > |
Functions | |
template<class... Args> | |
void | ransDecodeBenchmark (benchmark::State &st, Args &&... args) |
BENCHMARK_CAPTURE (ransDecodeBenchmark, decode_uniform_8, sourceMessageUniform8) | |
BENCHMARK_CAPTURE (ransDecodeBenchmark, decode_uniform_16, sourceMessageUniform16) | |
BENCHMARK_CAPTURE (ransDecodeBenchmark, decode_uniform_32, sourceMessageUniform32) | |
BENCHMARK_MAIN () | |
Variables | |
constexpr size_t | MessageSize = 1ull << 22 |
const SourceMessageProxyUniform< uint8_t > | sourceMessageUniform8 {MessageSize} |
const SourceMessageProxyUniform< uint16_t > | sourceMessageUniform16 {MessageSize} |
const SourceMessageProxyUniform< uint32_t > | sourceMessageUniform32 {MessageSize} |
BENCHMARK_CAPTURE | ( | ransDecodeBenchmark | , |
decode_uniform_16 | , | ||
sourceMessageUniform16 | |||
) |
BENCHMARK_CAPTURE | ( | ransDecodeBenchmark | , |
decode_uniform_32 | , | ||
sourceMessageUniform32 | |||
) |
BENCHMARK_CAPTURE | ( | ransDecodeBenchmark | , |
decode_uniform_8 | , | ||
sourceMessageUniform8 | |||
) |
BENCHMARK_MAIN | ( | ) |
void ransDecodeBenchmark | ( | benchmark::State & | st, |
Args &&... | args | ||
) |
Definition at line 105 of file bench_ransDecode.cxx.
|
inlineconstexpr |
Definition at line 40 of file bench_ransDecode.cxx.
|
inline |
Definition at line 101 of file bench_ransDecode.cxx.
|
inline |
Definition at line 102 of file bench_ransDecode.cxx.
|
inline |
Definition at line 100 of file bench_ransDecode.cxx.