Lines Matching refs:kHaystack
95 const char* const kHaystack = MakeHaystack(); variable
100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium()
146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological()
159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search()
160 kHaystack + kHaystackSize - 1, in BM_Search()
161 kHaystack + kHaystackSize)); in BM_Search()
169 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchMedium()
170 kHaystack + kHaystackSize - 2, in BM_SearchMedium()
171 kHaystack + kHaystackSize)); in BM_SearchMedium()
179 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchPathological()
180 kHaystack + kHaystackSize / 2, in BM_SearchPathological()
181 kHaystack + kHaystackSize)); in BM_SearchPathological()
189 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Searchcase()
190 kHaystack + kHaystackSize - 1, in BM_Searchcase()
191 kHaystack + kHaystackSize, case_eq)); in BM_Searchcase()
199 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchcaseMedium()
200 kHaystack + kHaystackSize - 2, in BM_SearchcaseMedium()
201 kHaystack + kHaystackSize, case_eq)); in BM_SearchcaseMedium()
209 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchcasePathological()
210 kHaystack + kHaystackSize / 2, in BM_SearchcasePathological()
211 kHaystack + kHaystackSize, case_eq)); in BM_SearchcasePathological()
247 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "b", 1)); in BM_Memmatch()
256 absl::strings_internal::memmatch(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmatchMedium()
265 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmatchPathological()
274 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasematch()
282 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasematchMedium()
290 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, in BM_MemcasematchPathological()
291 kHaystack + kHaystackSize / 2, in BM_MemcasematchPathological()
301 kHaystack + kHaystackSize - 10, 10, kHaystack + kHaystackSize - 1, 1)); in BM_MemmemStartup()
309 std::search(kHaystack + kHaystackSize - 10, kHaystack + kHaystackSize, in BM_SearchStartup()
310 kHaystack + kHaystackSize - 1, kHaystack + kHaystackSize)); in BM_SearchStartup()
318 kHaystack + kHaystackSize - 10, 10, kHaystack + kHaystackSize - 1, 1)); in BM_MemmatchStartup()