8051248bedd7387babba24c5756c286987c42eb1,asv_bench/benchmarks/hash_functions.py,,setup,#Any#Any#Any#,53

Before Change


    param_names = ["dtype", "M"]

    def setup(self, dtype, M):
        np.random.seed(42)
        self.values = np.random.rand(M)
        self.s = pd.Series(self.values).astype(dtype)
        np.random.shuffle(self.values)
        self.values_outside = self.values + 0.1

    def time_isin(self, dtype, M):
        self.s.isin(self.values)

After Change


    def setup(self, index, N):
        vals = np.array(list(range(55)) + [54] + list(range(55, N - 1)))
        indices = index(vals)
        self.data = pd.Series(np.arange(N), index=indices)

    def time_loc_slice(self, index, N):
        // trigger building of mapping
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pandas-dev/pandas
Commit Name: 8051248bedd7387babba24c5756c286987c42eb1
Time: 2021-02-21
Author: jbrockmendel@gmail.com
File Name: asv_bench/benchmarks/hash_functions.py
Class Name:
Method Name: setup


Project Name: keras-team/keras
Commit Name: 403b4fc7a25da5d957b24f1c269103ef6e290bd6
Time: 2016-01-26
Author: udi@benreuven.com
File Name: keras/preprocessing/image.py
Class Name: ImageDataGenerator
Method Name: flow


Project Name: keras-team/keras
Commit Name: ee4b0bcc2cbac3c79c9b0b2c30036d189654bed4
Time: 2017-10-31
Author: ozabluda@gmail.com
File Name: keras/datasets/boston_housing.py
Class Name:
Method Name: load_data