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

Function generate_junk

cpp/src/arrow/util/range_benchmark.cc:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <typename T = int32_t>
35std::vector<T> generate_junk(int64_t size) {
36 std::vector<T> v(size);
37 randint(size, 0, 100000, &v);
38 return v;
39}
40
41// Baseline
42void for_loop(benchmark::State& state) {

Callers 4

for_loopFunction · 0.85
std_copyFunction · 0.85
lazy_copyFunction · 0.85
lazy_postincFunction · 0.85

Calls 1

randintFunction · 0.85

Tested by

no test coverage detected