Project
Loading...
Searching...
No Matches
bench_ransDecode.cxx File Reference
#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}
 

Function Documentation

◆ BENCHMARK_CAPTURE() [1/3]

BENCHMARK_CAPTURE ( ransDecodeBenchmark  ,
decode_uniform_16  ,
sourceMessageUniform16   
)

◆ BENCHMARK_CAPTURE() [2/3]

BENCHMARK_CAPTURE ( ransDecodeBenchmark  ,
decode_uniform_32  ,
sourceMessageUniform32   
)

◆ BENCHMARK_CAPTURE() [3/3]

BENCHMARK_CAPTURE ( ransDecodeBenchmark  ,
decode_uniform_8  ,
sourceMessageUniform8   
)

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ ransDecodeBenchmark()

template<class... Args>
void ransDecodeBenchmark ( benchmark::State &  st,
Args &&...  args 
)

Definition at line 105 of file bench_ransDecode.cxx.

Variable Documentation

◆ MessageSize

constexpr size_t MessageSize = 1ull << 22
inlineconstexpr

Definition at line 40 of file bench_ransDecode.cxx.

◆ sourceMessageUniform16

const SourceMessageProxyUniform<uint16_t> sourceMessageUniform16 {MessageSize}
inline

Definition at line 101 of file bench_ransDecode.cxx.

◆ sourceMessageUniform32

const SourceMessageProxyUniform<uint32_t> sourceMessageUniform32 {MessageSize}
inline

Definition at line 102 of file bench_ransDecode.cxx.

◆ sourceMessageUniform8

const SourceMessageProxyUniform<uint8_t> sourceMessageUniform8 {MessageSize}
inline

Definition at line 100 of file bench_ransDecode.cxx.