Skip to content

Commit

Permalink
FIX-#2442: removed 'repr' from asv benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
  • Loading branch information
dchigarev committed Dec 9, 2020
1 parent c22a1dc commit 1c6b258
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions asv_bench/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def get_loc(df, loc, axis, item_length):
else (df.axes[axis][range_based_loc], range_based_loc)
)

def trigger_execution(self):
self.df.shape

def setup(self, data_type, data_size, item_length, loc, is_equal_indices):
self.df = generate_dataframe(
"modin", data_type, data_size[1], data_size[0], RAND_LOW, RAND_HIGH
Expand All @@ -207,11 +210,11 @@ class TimeSetItem(BaseTimeSetItem):

def time_setitem_qc(self, *args, **kwargs):
self.df[self.loc] = self.item
repr(self.df)
self.trigger_execution()

def time_setitem_raw(self, *args, **kwargs):
self.df[self.loc] = self.item_raw
repr(self.df)
self.trigger_execution()


class TimeInsert(BaseTimeSetItem):
Expand All @@ -225,11 +228,11 @@ class TimeInsert(BaseTimeSetItem):

def time_insert_qc(self, *args, **kwargs):
self.df.insert(loc=self.iloc, column=random_string(), value=self.item)
repr(self.df)
self.trigger_execution()

def time_insert_raw(self, *args, **kwargs):
self.df.insert(loc=self.iloc, column=random_string(), value=self.item_raw)
repr(self.df)
self.trigger_execution()


class TimeArithmetic:
Expand Down

0 comments on commit 1c6b258

Please sign in to comment.