Lines Matching refs:state

38 void ReadWriteTest(benchmark::State& state, Fn f, bool buffered) {  in ReadWriteTest()  argument
39 size_t chunk_size = state.range(0); in ReadWriteTest()
49 while (state.KeepRunning()) { in ReadWriteTest()
55 state.SetBytesProcessed(int64_t(state.iterations()) * int64_t(chunk_size)); in ReadWriteTest()
60 void BM_stdio_fread(benchmark::State& state) { in BM_stdio_fread() argument
61 ReadWriteTest(state, fread, true); in BM_stdio_fread()
65 void BM_stdio_fwrite(benchmark::State& state) { in BM_stdio_fwrite() argument
66 ReadWriteTest(state, fwrite, true); in BM_stdio_fwrite()
70 void BM_stdio_fread_unbuffered(benchmark::State& state) { in BM_stdio_fread_unbuffered() argument
71 ReadWriteTest(state, fread, false); in BM_stdio_fread_unbuffered()
75 void BM_stdio_fwrite_unbuffered(benchmark::State& state) { in BM_stdio_fwrite_unbuffered() argument
76 ReadWriteTest(state, fwrite, false); in BM_stdio_fwrite_unbuffered()
81 static void FopenFgetlnFclose(benchmark::State& state, bool no_locking) { in FopenFgetlnFclose() argument
84 while (state.KeepRunning()) { in FopenFgetlnFclose()
94 static void BM_stdio_fopen_fgetln_fclose_locking(benchmark::State& state) { in BM_stdio_fopen_fgetln_fclose_locking() argument
95 FopenFgetlnFclose(state, false); in BM_stdio_fopen_fgetln_fclose_locking()
99 void BM_stdio_fopen_fgetln_fclose_no_locking(benchmark::State& state) { in BM_stdio_fopen_fgetln_fclose_no_locking() argument
100 FopenFgetlnFclose(state, true); in BM_stdio_fopen_fgetln_fclose_no_locking()
105 static void FopenFgetsFclose(benchmark::State& state, bool no_locking) { in FopenFgetsFclose() argument
109 while (state.KeepRunning()) { in FopenFgetsFclose()
118 static void BM_stdio_fopen_fgets_fclose_locking(benchmark::State& state) { in BM_stdio_fopen_fgets_fclose_locking() argument
119 FopenFgetsFclose(state, false); in BM_stdio_fopen_fgets_fclose_locking()
123 void BM_stdio_fopen_fgets_fclose_no_locking(benchmark::State& state) { in BM_stdio_fopen_fgets_fclose_no_locking() argument
124 FopenFgetsFclose(state, true); in BM_stdio_fopen_fgets_fclose_no_locking()
128 static void FopenGetlineFclose(benchmark::State& state, bool no_locking) { in FopenGetlineFclose() argument
131 while (state.KeepRunning()) { in FopenGetlineFclose()
143 static void BM_stdio_fopen_getline_fclose_locking(benchmark::State& state) { in BM_stdio_fopen_getline_fclose_locking() argument
144 FopenGetlineFclose(state, false); in BM_stdio_fopen_getline_fclose_locking()
148 void BM_stdio_fopen_getline_fclose_no_locking(benchmark::State& state) { in BM_stdio_fopen_getline_fclose_no_locking() argument
149 FopenGetlineFclose(state, true); in BM_stdio_fopen_getline_fclose_no_locking()
153 static void FopenFgetcFclose(benchmark::State& state, bool no_locking) { in FopenFgetcFclose() argument
154 size_t nbytes = state.range(0); in FopenFgetcFclose()
155 while (state.KeepRunning()) { in FopenFgetcFclose()
166 static void BM_stdio_fopen_fgetc_fclose_locking(benchmark::State& state) { in BM_stdio_fopen_fgetc_fclose_locking() argument
167 FopenFgetcFclose(state, false); in BM_stdio_fopen_fgetc_fclose_locking()
171 void BM_stdio_fopen_fgetc_fclose_no_locking(benchmark::State& state) { in BM_stdio_fopen_fgetc_fclose_no_locking() argument
172 FopenFgetcFclose(state, true); in BM_stdio_fopen_fgetc_fclose_no_locking()
176 static void BM_stdio_printf_literal(benchmark::State& state) { in BM_stdio_printf_literal() argument
177 while (state.KeepRunning()) { in BM_stdio_printf_literal()
184 static void BM_stdio_printf_s(benchmark::State& state) { in BM_stdio_printf_s() argument
185 while (state.KeepRunning()) { in BM_stdio_printf_s()
193 static void BM_stdio_printf_d(benchmark::State& state) { in BM_stdio_printf_d() argument
194 while (state.KeepRunning()) { in BM_stdio_printf_d()
201 static void BM_stdio_printf_1$s(benchmark::State& state) { in BM_stdio_printf_1$s() argument
202 while (state.KeepRunning()) { in BM_stdio_printf_1$s()
210 static void BM_stdio_scanf_s(benchmark::State& state) { in BM_stdio_scanf_s() argument
211 while (state.KeepRunning()) { in BM_stdio_scanf_s()
218 static void BM_stdio_scanf_d(benchmark::State& state) { in BM_stdio_scanf_d() argument
219 while (state.KeepRunning()) { in BM_stdio_scanf_d()
227 static void BM_stdio_scanf_maps(benchmark::State& state) { in BM_stdio_scanf_maps() argument
228 while (state.KeepRunning()) { in BM_stdio_scanf_maps()
295 static void BM_stdio_scanf_maps_baseline(benchmark::State& state) { in BM_stdio_scanf_maps_baseline() argument
296 while (state.KeepRunning()) { in BM_stdio_scanf_maps_baseline()