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

Before Change


    param_names = ["dtype", "exponent"]

    def setup(self, dtype, exponent):
        M = 3 * 2 ** (exponent - 2)
        // 0.77-the maximal share of occupied buckets
        np.random.seed(42)
        self.s = pd.Series(np.random.randint(0, M, M)).astype(dtype)
        self.values = np.random.randint(0, M, M).astype(dtype)
        self.values_outside = self.values + M

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

After Change


    param_names = ["index_dtype", "N"]

    def setup(self, index, N):
        vals = np.array(list(range(55)) + [54] + list(range(55, N - 1)))
        np.random.seed(42)
        np.random.shuffle(vals)
        indices = index(vals)
        self.data = pd.Series(np.arange(N), index=indices)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: IsinAlmostFullWithRandomInt
Method Name: setup


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: gboeing/osmnx
Commit Name: dfe8d88a87a4b98f831f69012e22f8b7611f7d25
Time: 2020-05-13
Author: boeing@usc.edu
File Name: osmnx/simplify.py
Class Name:
Method Name: consolidate_intersections_rebuild_graph