Skip to content

Commit

Permalink
CLN: do not use .repeat asv setting for storing benchmark data (panda…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwhelan authored and Pingviinituutti committed Feb 28, 2019
1 parent 468cc20 commit 52ccaa2
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 52ccaa2

Please sign in to comment.