diff --git a/asv_bench/benchmarks/benchmarks.py b/asv_bench/benchmarks/benchmarks.py index c6c86a2c880..512c116abd5 100644 --- a/asv_bench/benchmarks/benchmarks.py +++ b/asv_bench/benchmarks/benchmarks.py @@ -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