Skip to content

Commit 9202540

Browse files
y-pwesm
y-p
authored andcommitted
VB: add test for iteritems performance
catch the regression noted in #2273 next time.
1 parent 5af2f95 commit 9202540

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

vb_suite/frame_methods.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,14 @@
6565

6666
frame_boolean_row_select = Benchmark('df[bool_arr]', setup,
6767
start_date=datetime(2011, 1, 1))
68+
69+
#----------------------------------------------------------------------
70+
# iteritems (monitor no-copying behaviour)
71+
72+
setup = common_setup + """
73+
df = DataFrame(randn(10000, 100))
74+
"""
75+
76+
# as far back as the earliest test currently in the suite
77+
frame_iteritems = Benchmark('for name,col in df.iteritems(): pass', setup,
78+
start_date=datetime(2010, 6, 1))

0 commit comments

Comments
 (0)