Lines Matching refs:state

30 static void BM_string_memcmp(benchmark::State& state) {  in BM_string_memcmp()  argument
31 const size_t nbytes = state.range_x(); in BM_string_memcmp()
37 while (state.KeepRunning()) { in BM_string_memcmp()
41 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp()
47 static void BM_string_memcpy(benchmark::State& state) { in BM_string_memcpy() argument
48 const size_t nbytes = state.range_x(); in BM_string_memcpy()
52 while (state.KeepRunning()) { in BM_string_memcpy()
56 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy()
62 static void BM_string_memmove(benchmark::State& state) { in BM_string_memmove() argument
63 const size_t nbytes = state.range_x(); in BM_string_memmove()
67 while (state.KeepRunning()) { in BM_string_memmove()
71 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memmove()
76 static void BM_string_memset(benchmark::State& state) { in BM_string_memset() argument
77 const size_t nbytes = state.range_x(); in BM_string_memset()
80 while (state.KeepRunning()) { in BM_string_memset()
84 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memset()
89 static void BM_string_strlen(benchmark::State& state) { in BM_string_strlen() argument
90 const size_t nbytes = state.range_x(); in BM_string_strlen()
96 while (state.KeepRunning()) { in BM_string_strlen()
100 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_strlen()