MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

cpp/src/arrow/util/thread_pool_benchmark.cc:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54void Workload::operator()() {
55 uint64_t result = 0;
56 for (int32_t i = 0; i < size_ / kDataSize; ++i) {
57 for (const auto v : data_) {
58 result = (result << (v % 64)) - v;
59 }
60 }
61 benchmark::DoNotOptimize(result);
62}
63
64struct Task {
65 explicit Task(int32_t size) : workload_(size) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected