Lines Matching refs:state
24 static void BM_string_memcmp(benchmark::State& state) { in BM_string_memcmp() argument
25 const size_t nbytes = state.range(0); in BM_string_memcmp()
26 const size_t src_alignment = state.range(1); in BM_string_memcmp()
27 const size_t dst_alignment = state.range(2); in BM_string_memcmp()
35 while (state.KeepRunning()) { in BM_string_memcmp()
39 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp()
43 static void BM_string_memcpy(benchmark::State& state) { in BM_string_memcpy() argument
44 const size_t nbytes = state.range(0); in BM_string_memcpy()
45 const size_t src_alignment = state.range(1); in BM_string_memcpy()
46 const size_t dst_alignment = state.range(2); in BM_string_memcpy()
53 while (state.KeepRunning()) { in BM_string_memcpy()
57 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy()
61 static void BM_string_memmove_non_overlapping(benchmark::State& state) { in BM_string_memmove_non_overlapping() argument
62 const size_t nbytes = state.range(0); in BM_string_memmove_non_overlapping()
63 const size_t src_alignment = state.range(1); in BM_string_memmove_non_overlapping()
64 const size_t dst_alignment = state.range(2); in BM_string_memmove_non_overlapping()
71 while (state.KeepRunning()) { in BM_string_memmove_non_overlapping()
75 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_non_overlapping()
79 static void BM_string_memmove_overlap_dst_before_src(benchmark::State& state) { in BM_string_memmove_overlap_dst_before_src() argument
80 const size_t nbytes = state.range(0); in BM_string_memmove_overlap_dst_before_src()
81 const size_t alignment = state.range(1); in BM_string_memmove_overlap_dst_before_src()
86 while (state.KeepRunning()) { in BM_string_memmove_overlap_dst_before_src()
90 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_overlap_dst_before_src()
94 static void BM_string_memmove_overlap_src_before_dst(benchmark::State& state) { in BM_string_memmove_overlap_src_before_dst() argument
95 const size_t nbytes = state.range(0); in BM_string_memmove_overlap_src_before_dst()
96 const size_t alignment = state.range(1); in BM_string_memmove_overlap_src_before_dst()
101 while (state.KeepRunning()) { in BM_string_memmove_overlap_src_before_dst()
105 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove_overlap_src_before_dst()
109 static void BM_string_memset(benchmark::State& state) { in BM_string_memset() argument
110 const size_t nbytes = state.range(0); in BM_string_memset()
111 const size_t alignment = state.range(1); in BM_string_memset()
116 while (state.KeepRunning()) { in BM_string_memset()
120 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memset()
124 static void BM_string_strlen(benchmark::State& state) { in BM_string_strlen() argument
125 const size_t nbytes = state.range(0); in BM_string_strlen()
126 const size_t alignment = state.range(1); in BM_string_strlen()
133 while (state.KeepRunning()) { in BM_string_strlen()
137 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strlen()
141 static void BM_string_strcat_copy_only(benchmark::State& state) { in BM_string_strcat_copy_only() argument
142 const size_t nbytes = state.range(0); in BM_string_strcat_copy_only()
143 const size_t src_alignment = state.range(1); in BM_string_strcat_copy_only()
144 const size_t dst_alignment = state.range(2); in BM_string_strcat_copy_only()
155 while (state.KeepRunning()) { in BM_string_strcat_copy_only()
160 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_copy_only()
164 static void BM_string_strcat_seek_only(benchmark::State& state) { in BM_string_strcat_seek_only() argument
165 const size_t nbytes = state.range(0); in BM_string_strcat_seek_only()
166 const size_t src_alignment = state.range(1); in BM_string_strcat_seek_only()
167 const size_t dst_alignment = state.range(2); in BM_string_strcat_seek_only()
176 while (state.KeepRunning()) { in BM_string_strcat_seek_only()
181 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_seek_only()
185 static void BM_string_strcat_half_copy_half_seek(benchmark::State& state) { in BM_string_strcat_half_copy_half_seek() argument
186 const size_t nbytes = state.range(0); in BM_string_strcat_half_copy_half_seek()
187 const size_t src_alignment = state.range(1); in BM_string_strcat_half_copy_half_seek()
188 const size_t dst_alignment = state.range(2); in BM_string_strcat_half_copy_half_seek()
202 while (state.KeepRunning()) { in BM_string_strcat_half_copy_half_seek()
207 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcat_half_copy_half_seek()
211 static void BM_string_strcpy(benchmark::State& state) { in BM_string_strcpy() argument
212 const size_t nbytes = state.range(0); in BM_string_strcpy()
213 const size_t src_alignment = state.range(1); in BM_string_strcpy()
214 const size_t dst_alignment = state.range(2); in BM_string_strcpy()
222 while (state.KeepRunning()) { in BM_string_strcpy()
226 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcpy()
230 static void BM_string_strcmp(benchmark::State& state) { in BM_string_strcmp() argument
231 const size_t nbytes = state.range(0); in BM_string_strcmp()
232 const size_t s1_alignment = state.range(1); in BM_string_strcmp()
233 const size_t s2_alignment = state.range(2); in BM_string_strcmp()
243 while (state.KeepRunning()) { in BM_string_strcmp()
247 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strcmp()
251 static void BM_string_strncmp(benchmark::State& state) { in BM_string_strncmp() argument
252 const size_t nbytes = state.range(0); in BM_string_strncmp()
253 const size_t s1_alignment = state.range(1); in BM_string_strncmp()
254 const size_t s2_alignment = state.range(2); in BM_string_strncmp()
262 for (auto _ : state) { in BM_string_strncmp()
266 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strncmp()
270 static void BM_string_strstr(benchmark::State& state) { in BM_string_strstr() argument
271 const size_t nbytes = state.range(0); in BM_string_strstr()
272 const size_t haystack_alignment = state.range(1); in BM_string_strstr()
273 const size_t needle_alignment = state.range(2); in BM_string_strstr()
289 while (state.KeepRunning()) { in BM_string_strstr()
295 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strstr()
299 static void BM_string_strchr(benchmark::State& state) { in BM_string_strchr() argument
300 const size_t nbytes = state.range(0); in BM_string_strchr()
301 const size_t haystack_alignment = state.range(1); in BM_string_strchr()
307 while (state.KeepRunning()) { in BM_string_strchr()
313 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strchr()