13#include <benchmark/benchmark.h>
20static void BM_BigEndianCopyUInt16(benchmark::State& state)
22 auto const bytes =
static_cast<size_t>(
state.range(0));
24 std::vector<uint16_t>
src(
count, 0xCAFE);
25 auto* dest =
static_cast<uint16_t*
>(std::aligned_alloc(64,
bytes));
26 for (
auto _ :
state) {
28 benchmark::DoNotOptimize(dest);
33BENCHMARK(BM_BigEndianCopyUInt16)->RangeMultiplier(2)->Range(32000, 512000);
35static void BM_BigEndianCopyUInt32(benchmark::State& state)
37 auto const bytes =
static_cast<size_t>(
state.range(0));
39 std::vector<uint32_t>
src(
count, 0xDEADBEEF);
40 auto* dest =
static_cast<uint32_t*
>(std::aligned_alloc(64,
bytes));
41 for (
auto _ :
state) {
43 benchmark::DoNotOptimize(dest);
48BENCHMARK(BM_BigEndianCopyUInt32)->RangeMultiplier(2)->Range(32000, 512000);
50static void BM_BigEndianCopyUInt64(benchmark::State& state)
52 auto const bytes =
static_cast<size_t>(
state.range(0));
54 std::vector<uint64_t>
src(
count, 0x0123456789ABCDEFULL);
55 auto* dest =
static_cast<uint64_t*
>(std::aligned_alloc(64,
bytes));
56 for (
auto _ :
state) {
58 benchmark::DoNotOptimize(dest);
63BENCHMARK(BM_BigEndianCopyUInt64)->RangeMultiplier(2)->Range(32000, 512000);
unsigned short int uint16_t
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
BENCHMARK(BM_BigEndianCopyUInt16) -> RangeMultiplier(2) ->Range(32000, 512000)
Defining ITS Vertex explicitly as messageable.
void bigEndianCopy(void *dest, const void *src, int count, size_t typeSize)