Lines Matching refs:find
138 #### same tests as 'in' but use 'find'
140 @bench('("A"*1000).find("A")', "early match, single character", 1000)
144 s1_find = s1.find
148 @bench('("A"*1000).find("B")', "no match, single character", 1000)
152 s1_find = s1.find
157 @bench('("AB"*1000).find("AB")', "early match, two characters", 1000)
161 s1_find = s1.find
165 @bench('("AB"*1000).find("BC")', "no match, two characters", 1000)
169 s1_find = s1.find
173 @bench('("AB"*1000).find("CA")', "no match, two characters", 1000)
177 s1_find = s1.find
181 @bench('("AB"*300+"C").find("BC")', "late match, two characters", 1000)
185 s1_find = s1.find
189 @bench('("AB"*300+"CA").find("CA")', "late match, two characters", 1000)
193 s1_find = s1.find
197 @bench('s="ABC"*33; ((s+"D")*500+s+"E").find(s+"E")',
205 s1_find = s1.find
209 @bench('s="ABC"*33; ((s+"D")*500+"E"+s).find("E"+s)',
217 s1_find = s1.find