| 277 | # endif // ARROW_HAVE_SSE4_2 |
| 278 | |
| 279 | static 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 | |
| 285 | BENCHMARK_TEMPLATE(MemoryBandwidth, StreamRead)->Apply(SetMemoryBandwidthArgs); |
| 286 | BENCHMARK_TEMPLATE(MemoryBandwidth, StreamWrite)->Apply(SetMemoryBandwidthArgs); |
nothing calls this directly
no outgoing calls
no test coverage detected