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

Method setup

python/benchmarks/parquet.py:83–94  ·  view source on GitHub ↗
(self, nunique)

Source from the content-addressed store, hash-verified

81 params = [(1000), (100000)]
82
83 def setup(self, nunique):
84 self.num_cols = 10
85 self.value_size = 32
86 self.nunique = nunique
87 self.length = 10000000
88
89 self.table = generate_dict_table(self.num_cols, self.value_size,
90 self.nunique, self.length)
91 self.table_sequential = generate_dict_table(self.num_cols,
92 self.value_size,
93 self.nunique, self.length,
94 random_order=False)
95
96 def time_write_random_order(self, nunique):
97 pq.write_table(self.table, pa.BufferOutputStream())

Callers

nothing calls this directly

Calls 1

generate_dict_tableFunction · 0.85

Tested by

no test coverage detected