Skip to content

Commit

Permalink
CLN: do not use .repeat asv setting for storing benchmark data (#25015)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwhelan authored and WillAyd committed Jan 30, 2019
1 parent ece58cb commit 3f90255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asv_bench/benchmarks/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def setup(self, repeats):
N = 10**5
self.s = Series(tm.makeStringIndex(N))
repeat = {'int': 1, 'array': np.random.randint(1, 3, N)}
self.repeat = repeat[repeats]
self.values = repeat[repeats]

def time_repeat(self, repeats):
self.s.str.repeat(self.repeat)
self.s.str.repeat(self.values)


class Cat(object):
Expand Down

0 comments on commit 3f90255

Please sign in to comment.