From dc5170825c330f1481adfcc60066916a4f00c101 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Fri, 31 May 2019 19:16:49 +0300 Subject: [PATCH] CLN: remove sample_time attributes from benchmarks These appear to have been brought in by direct replacement of a deprecated ASV attribute goal_time -> sample_time, but the two have different semantics. Increasing this from the default value is probably not necessary and increases runtime, so it's better to restore it to defaults. --- asv_bench/benchmarks/index_object.py | 1 - asv_bench/benchmarks/rolling.py | 6 ------ 2 files changed, 7 deletions(-) diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 0fdf46e7c64de..896a20bae2069 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -52,7 +52,6 @@ def time_is_dates_only(self): class Ops: - sample_time = 0.2 params = ['float', 'int'] param_names = ['dtype'] diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 2532d326dff4b..033b466c8b9be 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -4,7 +4,6 @@ class Methods: - sample_time = 0.2 params = (['DataFrame', 'Series'], [10, 1000], ['int', 'float'], @@ -23,7 +22,6 @@ def time_rolling(self, constructor, window, dtype, method): class ExpandingMethods: - sample_time = 0.2 params = (['DataFrame', 'Series'], ['int', 'float'], ['median', 'mean', 'max', 'min', 'std', 'count', 'skew', 'kurt', @@ -41,7 +39,6 @@ def time_expanding(self, constructor, dtype, method): class EWMMethods: - sample_time = 0.2 params = (['DataFrame', 'Series'], [10, 1000], ['int', 'float'], @@ -58,7 +55,6 @@ def time_ewm(self, constructor, window, dtype, method): class VariableWindowMethods(Methods): - sample_time = 0.2 params = (['DataFrame', 'Series'], ['50s', '1h', '1d'], ['int', 'float'], @@ -75,7 +71,6 @@ def setup(self, constructor, window, dtype, method): class Pairwise: - sample_time = 0.2 params = ([10, 1000, None], ['corr', 'cov'], [True, False]) @@ -95,7 +90,6 @@ def time_pairwise(self, window, method, pairwise): class Quantile: - sample_time = 0.2 params = (['DataFrame', 'Series'], [10, 1000], ['int', 'float'],