Skip to content

Commit

Permalink
TEST-#2716: add describe bench (#2718)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Feb 11, 2021
1 parent a54875a commit 569337b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions asv_bench/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,3 +567,16 @@ def setup(self, shape, dtype, astype_ncolumns):

def time_astype(self, shape, dtype, astype_ncolumns):
execute(self.df.astype(self.astype_arg))


class TimeDescribe:
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_describe(self, shape):
execute(self.df.describe())

0 comments on commit 569337b

Please sign in to comment.