Skip to content

Commit ef1b9a4

Browse files
committed
parametrized benchmark
1 parent 114eb0d commit ef1b9a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

asv_bench/benchmarks/frame_methods.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,13 @@ def time_dataframe_describe(self):
610610

611611

612612
class SelectDtypes:
613-
def setup(self):
614-
self.df = DataFrame(np.random.randn(10, 100000))
613+
params = [10, 100, 1000, 10000, 100000]
614+
param_names = ["n"]
615+
616+
def setup(self, n):
617+
self.df = DataFrame(np.random.randn(10, n))
615618

616-
def time_select_dtypes(self):
619+
def time_select_dtypes(self, n):
617620
self.df.select_dtypes(include="int")
618621

619622

0 commit comments

Comments
 (0)