![]() |
Project
|
compares performance of different encoders 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 "helpers.h"
Go to the source code of this file.
Classes | |
class | SourceMessageProxy< source_T > |
Functions | |
template<typename T > | |
const auto & | getMessage () |
template<typename source_T , CoderTag coderTag_V> | |
void | ransCompressionBenchmark (benchmark::State &st) |
template<typename source_T , CoderTag coderTag_V> | |
void | ransLiteralCompressionBenchmark (benchmark::State &st) |
template<typename source_T , CoderTag coderTag_V> | |
void | ransAdaptiveCompressionBenchmark (benchmark::State &st) |
template<typename source_T , CoderTag coderTag_V> | |
void | ransAdaptiveLiteralCompressionBenchmark (benchmark::State &st) |
BENCHMARK (ransCompressionBenchmark< uint8_t, CoderTag::Compat >) | |
BENCHMARK (ransCompressionBenchmark< uint16_t, CoderTag::Compat >) | |
BENCHMARK (ransCompressionBenchmark< uint32_t, CoderTag::Compat >) | |
BENCHMARK (ransAdaptiveCompressionBenchmark< uint32_t, CoderTag::Compat >) | |
BENCHMARK (ransLiteralCompressionBenchmark< uint8_t, CoderTag::Compat >) | |
BENCHMARK (ransLiteralCompressionBenchmark< uint16_t, CoderTag::Compat >) | |
BENCHMARK (ransLiteralCompressionBenchmark< uint32_t, CoderTag::Compat >) | |
BENCHMARK (ransAdaptiveLiteralCompressionBenchmark< uint32_t, CoderTag::Compat >) | |
BENCHMARK_MAIN () | |
Variables | |
constexpr size_t | MessageSize = 1ull << 22 |
const SourceMessageProxy< uint8_t > | sourceMessage8 {MessageSize} |
const SourceMessageProxy< uint16_t > | sourceMessage16 {MessageSize} |
const SourceMessageProxy< uint32_t > | sourceMessage32 {MessageSize} |
compares performance of different encoders
Definition in file bench_ransEncode.cxx.
BENCHMARK | ( | ransAdaptiveCompressionBenchmark< uint32_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransAdaptiveLiteralCompressionBenchmark< uint32_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransCompressionBenchmark< uint16_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransCompressionBenchmark< uint32_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransCompressionBenchmark< uint8_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransLiteralCompressionBenchmark< uint16_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransLiteralCompressionBenchmark< uint32_t, CoderTag::Compat > | ) |
BENCHMARK | ( | ransLiteralCompressionBenchmark< uint8_t, CoderTag::Compat > | ) |
BENCHMARK_MAIN | ( | ) |
const auto & getMessage | ( | ) |
Definition at line 74 of file bench_ransEncode.cxx.
void ransAdaptiveCompressionBenchmark | ( | benchmark::State & | st | ) |
Definition at line 179 of file bench_ransEncode.cxx.
void ransAdaptiveLiteralCompressionBenchmark | ( | benchmark::State & | st | ) |
Definition at line 228 of file bench_ransEncode.cxx.
void ransCompressionBenchmark | ( | benchmark::State & | st | ) |
Definition at line 86 of file bench_ransEncode.cxx.
void ransLiteralCompressionBenchmark | ( | benchmark::State & | st | ) |
Definition at line 131 of file bench_ransEncode.cxx.
|
inlineconstexpr |
Definition at line 40 of file bench_ransEncode.cxx.
|
inline |
Definition at line 70 of file bench_ransEncode.cxx.
|
inline |
Definition at line 71 of file bench_ransEncode.cxx.
|
inline |
Definition at line 69 of file bench_ransEncode.cxx.