From 46b8b9d9b154ffa5a3b9232667ac1a6ddc658c9b Mon Sep 17 00:00:00 2001 From: y-p Date: Fri, 23 Nov 2012 14:02:17 +0200 Subject: [PATCH] VB: add test for iteritems performance catch the regression noted in #2273 next time. --- vb_suite/frame_methods.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vb_suite/frame_methods.py b/vb_suite/frame_methods.py index 08f041d835f76..7cf1fc6cf34c5 100644 --- a/vb_suite/frame_methods.py +++ b/vb_suite/frame_methods.py @@ -65,3 +65,14 @@ frame_boolean_row_select = Benchmark('df[bool_arr]', setup, start_date=datetime(2011, 1, 1)) + +#---------------------------------------------------------------------- +# iteritems (monitor no-copying behaviour) + +setup = common_setup + """ +df = DataFrame(randn(10000, 100)) +""" + +# as far back as the earliest test currently in the suite +frame_iteritems = Benchmark('for name,col in df.iteritems(): pass', setup, + start_date=datetime(2010, 6, 1))