Home
last modified time | relevance | path

Searched refs:kHaystackSize (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/abseil-cpp/absl/strings/internal/
Dmemutil_benchmark.cc87 constexpr int kHaystackSize = 10000; variable
88 constexpr int64_t kHaystackSize64 = kHaystackSize;
90 char* haystack = new char[kHaystackSize]; in MakeHaystack()
91 for (int i = 0; i < kHaystackSize - 1; ++i) haystack[i] = 'a'; in MakeHaystack()
92 haystack[kHaystackSize - 1] = 'b'; in MakeHaystack()
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()
119 kHaystackSize - kHaystackSize / 2)); in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
[all …]
/external/abseil-cpp/absl/strings/internal/
Dmemutil_benchmark.cc87 constexpr int kHaystackSize = 10000; variable
88 constexpr int64_t kHaystackSize64 = kHaystackSize;
90 char* haystack = new char[kHaystackSize]; in MakeHaystack()
91 for (int i = 0; i < kHaystackSize - 1; ++i) haystack[i] = 'a'; in MakeHaystack()
92 haystack[kHaystackSize - 1] = 'b'; in MakeHaystack()
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()
119 kHaystackSize - kHaystackSize / 2)); in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/internal/
Dmemutil_benchmark.cc87 constexpr int kHaystackSize = 10000; variable
88 constexpr int64_t kHaystackSize64 = kHaystackSize;
90 char* haystack = new char[kHaystackSize]; in MakeHaystack()
91 for (int i = 0; i < kHaystackSize - 1; ++i) haystack[i] = 'a'; in MakeHaystack()
92 haystack[kHaystackSize - 1] = 'b'; in MakeHaystack()
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()
119 kHaystackSize - kHaystackSize / 2)); in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_benchmark.cc87 constexpr int kHaystackSize = 10000; variable
88 constexpr int64_t kHaystackSize64 = kHaystackSize;
90 char* haystack = new char[kHaystackSize]; in MakeHaystack()
91 for (int i = 0; i < kHaystackSize - 1; ++i) haystack[i] = 'a'; in MakeHaystack()
92 haystack[kHaystackSize - 1] = 'b'; in MakeHaystack()
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()
119 kHaystackSize - kHaystackSize / 2)); in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_benchmark.cc87 constexpr int kHaystackSize = 10000; variable
88 constexpr int64_t kHaystackSize64 = kHaystackSize;
90 char* haystack = new char[kHaystackSize]; in MakeHaystack()
91 for (int i = 0; i < kHaystackSize - 1; ++i) haystack[i] = 'a'; in MakeHaystack()
92 haystack[kHaystackSize - 1] = 'b'; in MakeHaystack()
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()
119 kHaystackSize - kHaystackSize / 2)); in BM_MemmemPathological()
128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem()
[all …]