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

Function SelectKInt64

cpp/src/arrow/compute/kernels/vector_topk_benchmark.cc:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static void SelectKInt64(benchmark::State& state) {
42 RegressionArgs args(state);
43
44 const int64_t array_size = args.size / sizeof(int64_t);
45 auto rand = random::RandomArrayGenerator(kSeed);
46
47 auto min = std::numeric_limits<int64_t>::min();
48 auto max = std::numeric_limits<int64_t>::max();
49 auto values = rand.Int64(array_size, min, max, args.null_proportion);
50
51 SelectKBenchmark(state, values, array_size / 8);
52}
53
54BENCHMARK(SelectKInt64)
55 ->Apply(RegressionSetArgs)

Callers

nothing calls this directly

Calls 2

SelectKBenchmarkFunction · 0.85
Int64Method · 0.45

Tested by

no test coverage detected