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

Method setup

python/benchmarks/parquet.py:109–116  ·  view source on GitHub ↗
(self, num_cols)

Source from the content-addressed store, hash-verified

107 params = [100, 1000, 10000]
108
109 def setup(self, num_cols):
110 num_rows = self.total_cells // num_cols
111 self.table = pa.table({'c' + str(i): np.random.randn(num_rows)
112 for i in range(num_cols)})
113
114 out = pa.BufferOutputStream()
115 pq.write_table(self.table, out)
116 self.buf = out.getvalue()
117
118 def time_write(self, num_cols):
119 out = pa.BufferOutputStream()

Callers

nothing calls this directly

Calls 2

BufferOutputStreamMethod · 0.80
write_tableMethod · 0.45

Tested by

no test coverage detected