8051248bedd7387babba24c5756c286987c42eb1,asv_bench/benchmarks/hash_functions.py,IsinAlmostFullWithRandomInt,setup,#IsinAlmostFullWithRandomInt#Any#Any#,13
Before Change
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
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: ysig/GraKeL
Commit Name: 34f48a46d4d27c92c7290a211e6bbe608e718552
Time: 2017-11-20
Author: y.siglidis@gmail.com
File Name: grakel/kernels.py
Class Name:
Method Name: sample_graphlets
Project Name: pandas-dev/pandas
Commit Name: 5a7514ccb18a3a506d453dd048c665c33835ee56
Time: 2020-12-11
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/categorical/test_indexing.py
Class Name: TestGetIndexer
Method Name: test_get_indexer_non_unique