Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST-#2716: add describe bench #2718

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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())