RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
CoalescingOutputIteratorBenchmark.cpp File Reference
#include "adt/CoalescingOutputIterator.h"
#include "adt/Array1DRef.h"
#include "adt/Casts.h"
#include "adt/DefaultInitAllocatorAdaptor.h"
#include "bench/Common.h"
#include "common/Common.h"
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <type_traits>
#include <vector>
#include <benchmark/benchmark.h>
Include dependency graph for CoalescingOutputIteratorBenchmark.cpp:

Go to the source code of this file.

Classes

struct  rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::C< b, T >

Namespaces

namespace  rawspeed
namespace  rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}

Macros

#define GEN(I, C)
#define GEN_T(I)

Typedefs

using rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::NoCoalescing = C<false, uint8_t>
template<typename T>
using rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::CoalesceTo = C<true, T>

Functions

template<bool ShouldCoalesce, typename UnderlyingOutputIterator>
requires (!ShouldCoalesce)
auto rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::getMaybeCoalescingOutputIterator (UnderlyingOutputIterator e)
template<bool ShouldCoalesce, typename UnderlyingOutputIterator>
requires (ShouldCoalesce)
auto rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::getMaybeCoalescingOutputIterator (UnderlyingOutputIterator e)
template<typename C>
void rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::BM_Broadcast (benchmark::State &state)
template<typename C>
void rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::BM_Copy (benchmark::State &state)
void rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::CustomArguments (benchmark::internal::Benchmark *b)
 rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::GEN_T (BM_Broadcast)
 rawspeed::anonymous_namespace{CoalescingOutputIteratorBenchmark.cpp}::GEN_T (BM_Copy)
 BENCHMARK_MAIN ()

Macro Definition Documentation

◆ GEN

#define GEN ( I,
C )
Value:
BENCHMARK(I<C>)->Apply(CustomArguments)
BENCHMARK(BM_MD5) -> Apply(CustomArguments)

Definition at line 175 of file CoalescingOutputIteratorBenchmark.cpp.

◆ GEN_T

#define GEN_T ( I)
Value:
GEN(I, NoCoalescing); \
GEN(I, CoalesceTo<uint16_t>); \
GEN(I, CoalesceTo<uint32_t>); \
GEN(I, CoalesceTo<uint64_t>)

Definition at line 177 of file CoalescingOutputIteratorBenchmark.cpp.

Function Documentation

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )