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

Function GenerateBenchmarkDataIntegerImpl

cpp/src/parquet/benchmark_util.cc:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39template <typename T>
40void GenerateBenchmarkDataIntegerImpl(uint32_t size, uint32_t seed, T* data,
41 std::vector<uint8_t>* heap, uint32_t) {
42 static_assert(std::is_integral_v<T>);
43 heap->clear();
44 std::default_random_engine gen(seed);
45 std::uniform_int_distribution<T> d(std::numeric_limits<T>::min(),
46 std::numeric_limits<T>::max());
47 for (uint32_t i = 0; i < size; ++i) {
48 data[i] = d(gen);
49 }
50}
51
52template <typename T>
53void GenerateBenchmarkDataFloatImpl(uint32_t size, uint32_t seed, T* data,

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected