Skip to content

Commit 3f90255

Browse files
qwhelanWillAyd
authored andcommitted
CLN: do not use .repeat asv setting for storing benchmark data (#25015)
1 parent ece58cb commit 3f90255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asv_bench/benchmarks/strings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def setup(self, repeats):
102102
N = 10**5
103103
self.s = Series(tm.makeStringIndex(N))
104104
repeat = {'int': 1, 'array': np.random.randint(1, 3, N)}
105-
self.repeat = repeat[repeats]
105+
self.values = repeat[repeats]
106106

107107
def time_repeat(self, repeats):
108-
self.s.str.repeat(self.repeat)
108+
self.s.str.repeat(self.values)
109109

110110

111111
class Cat(object):

0 commit comments

Comments
 (0)