Skip to content

Commit 48c5bfc

Browse files
mroeschkejorisvandenbossche
authored andcommitted
CLN: ASV frame_methods benchmark (pandas-dev#18536)
1 parent 32f562d commit 48c5bfc

File tree

5 files changed

+330
-397
lines changed

5 files changed

+330
-397
lines changed

asv_bench/benchmarks/frame_ctor.py

+15
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,18 @@ def setup(self, offset, n_steps):
124124

125125
def time_frame_ctor(self, offset, n_steps):
126126
DataFrame(self.d)
127+
128+
129+
class FromRecords(object):
130+
131+
goal_time = 0.2
132+
params = [None, 1000]
133+
param_names = ['nrows']
134+
135+
def setup(self, nrows):
136+
N = 100000
137+
self.gen = ((x, (x * 20), (x * 100)) for x in range(N))
138+
139+
def time_frame_from_records_generator(self, nrows):
140+
# issue-6700
141+
self.df = DataFrame.from_records(self.gen, nrows=nrows)

0 commit comments

Comments
 (0)