![]() |
Project
|
benchmarks packing algorithms and compares it to memcpy More...
#include "rANS/internal/common/defines.h"
#include <vector>
#include <cstring>
#include <random>
#include <algorithm>
#include <iterator>
#include <benchmark/benchmark.h>
#include "rANS/internal/pack/pack.h"
#include "helpers.h"
Go to the source code of this file.
Typedefs | |
using | source_type = uint32_t |
Functions | |
template<typename source_T > | |
std::vector< source_T > | makeRandomUniformVector (size_t nelems, source_T min=std::numeric_limits< source_T >::max(), source_T max=std::numeric_limits< source_T >::max()) |
BENCHMARK (copyBenchmark) | |
BENCHMARK (packingBenchmark) -> DenseRange(1, 32, 1) | |
BENCHMARK (fastPackBenchmark) -> DenseRange(1, 32, 1) | |
BENCHMARK_MAIN () | |
Variables | |
constexpr size_t | MessageSize = 1ull << 22 |
benchmarks packing algorithms and compares it to memcpy
Definition in file bench_ransPack.cxx.
using source_type = uint32_t |
Definition at line 41 of file bench_ransPack.cxx.
BENCHMARK | ( | copyBenchmark | ) |
BENCHMARK | ( | fastPackBenchmark | ) | -> DenseRange(1, 32, 1) |
BENCHMARK | ( | packingBenchmark | ) | -> DenseRange(1, 32, 1) |
BENCHMARK_MAIN | ( | ) |
std::vector< source_T > makeRandomUniformVector | ( | size_t | nelems, |
source_T | min = std::numeric_limits<source_T>::max() , |
||
source_T | max = std::numeric_limits<source_T>::max() |
||
) |
Definition at line 44 of file bench_ransPack.cxx.
|
inlineconstexpr |
Definition at line 39 of file bench_ransPack.cxx.