Skip to content

Commit

Permalink
TEST-modin-project#2725: add index, columns, shape benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Feb 11, 2021
1 parent 569337b commit 7883cc6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions asv_bench/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,3 +580,22 @@ def setup(self, shape):

def time_describe(self, shape):
execute(self.df.describe())


class TimeProperties:
param_names = ["shape"]
params = [
UNARY_OP_DATA_SIZE[ASV_DATASET_SIZE],
]

def setup(self, shape):
self.df = generate_dataframe(ASV_USE_IMPL, "int", *shape, RAND_LOW, RAND_HIGH)

def time_shape(self, shape):
return self.df.shape

def time_columns(self, shape):
return self.df.columns

def time_index(self, shape):
return self.df.index

0 comments on commit 7883cc6

Please sign in to comment.