MCPcopy Create free account
hub / github.com/apache/arrow / SetMemoryBandwidthArgs

Function SetMemoryBandwidthArgs

cpp/src/arrow/io/memory_benchmark.cc:279–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277# endif // ARROW_HAVE_SSE4_2
278
279static void SetMemoryBandwidthArgs(benchmark::internal::Benchmark* bench) {
280 // `UseRealTime` is required due to threads, otherwise the cumulative CPU time
281 // is used which will skew the results by the number of threads.
282 bench->Arg(kMemoryPerCore)->ThreadRange(1, kNumCores)->UseRealTime();
283}
284
285BENCHMARK_TEMPLATE(MemoryBandwidth, StreamRead)->Apply(SetMemoryBandwidthArgs);
286BENCHMARK_TEMPLATE(MemoryBandwidth, StreamWrite)->Apply(SetMemoryBandwidthArgs);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected