@@ -30,9 +30,8 @@ void BM_PathConstructString(benchmark::State& st, GenInputs gen) {
30
30
const path P (PP.native ());
31
31
benchmark::DoNotOptimize (P.native ().data ());
32
32
}
33
- st.SetComplexityN (st.range (0 ));
34
33
}
35
- BENCHMARK_CAPTURE (BM_PathConstructString, large_string, getRandomStringInputs)->Range(8 , TestNumInputs)->Complexity() ;
34
+ BENCHMARK_CAPTURE (BM_PathConstructString, large_string, getRandomStringInputs)->Range(8 , TestNumInputs);
36
35
37
36
template <class GenInputs >
38
37
void BM_PathConstructCStr (benchmark::State& st, GenInputs gen) {
@@ -66,7 +65,6 @@ void BM_PathConstructIter(benchmark::State& st, GenInputs gen) {
66
65
const path P (Start, End);
67
66
benchmark::DoNotOptimize (P.native ().data ());
68
67
}
69
- st.SetComplexityN (st.range (0 ));
70
68
}
71
69
template <class GenInputs >
72
70
void BM_PathConstructInputIter (benchmark::State& st, GenInputs gen) {
@@ -77,11 +75,9 @@ void BM_PathConstructForwardIter(benchmark::State& st, GenInputs gen) {
77
75
BM_PathConstructIter<forward_iterator>(st, gen);
78
76
}
79
77
BENCHMARK_CAPTURE (BM_PathConstructInputIter, large_string, getRandomStringInputs)
80
- ->Range(8 , TestNumInputs)
81
- ->Complexity();
78
+ ->Range(8 , TestNumInputs);
82
79
BENCHMARK_CAPTURE (BM_PathConstructForwardIter, large_string, getRandomStringInputs)
83
- ->Range(8 , TestNumInputs)
84
- ->Complexity();
80
+ ->Range(8 , TestNumInputs);
85
81
86
82
template <class GenInputs >
87
83
void BM_PathIterateMultipleTimes (benchmark::State& st, GenInputs gen) {
@@ -97,11 +93,9 @@ void BM_PathIterateMultipleTimes(benchmark::State& st, GenInputs gen) {
97
93
}
98
94
benchmark::ClobberMemory ();
99
95
}
100
- st.SetComplexityN (st.range (0 ));
101
96
}
102
97
BENCHMARK_CAPTURE (BM_PathIterateMultipleTimes, iterate_elements, getRandomStringInputs)
103
- ->Range(8 , TestNumInputs)
104
- ->Complexity();
98
+ ->Range(8 , TestNumInputs);
105
99
106
100
template <class GenInputs >
107
101
void BM_PathIterateOnce (benchmark::State& st, GenInputs gen) {
@@ -118,9 +112,8 @@ void BM_PathIterateOnce(benchmark::State& st, GenInputs gen) {
118
112
}
119
113
benchmark::ClobberMemory ();
120
114
}
121
- st.SetComplexityN (st.range (0 ));
122
115
}
123
- BENCHMARK_CAPTURE (BM_PathIterateOnce, iterate_elements, getRandomStringInputs)->Range(8 , TestNumInputs)->Complexity() ;
116
+ BENCHMARK_CAPTURE (BM_PathIterateOnce, iterate_elements, getRandomStringInputs)->Range(8 , TestNumInputs);
124
117
125
118
template <class GenInputs >
126
119
void BM_PathIterateOnceBackwards (benchmark::State& st, GenInputs gen) {
@@ -160,16 +153,13 @@ void BM_LexicallyNormal(benchmark::State& st, GenInput gen, size_t PathLen) {
160
153
while (st.KeepRunning ()) {
161
154
benchmark::DoNotOptimize (In.lexically_normal ());
162
155
}
163
- st.SetComplexityN (st.range (0 ));
164
156
}
165
157
BENCHMARK_CAPTURE (BM_LexicallyNormal, small_path, getRandomPaths, /* PathLen*/ 5 )
166
158
->RangeMultiplier(2 )
167
- ->Range(2 , 256 )
168
- ->Complexity();
159
+ ->Range(2 , 256 );
169
160
BENCHMARK_CAPTURE (BM_LexicallyNormal, large_path, getRandomPaths, /* PathLen*/ 32 )
170
161
->RangeMultiplier(2 )
171
- ->Range(2 , 256 )
172
- ->Complexity();
162
+ ->Range(2 , 256 );
173
163
174
164
template <class GenInput >
175
165
void BM_LexicallyRelative (benchmark::State& st, GenInput gen, size_t PathLen) {
@@ -180,15 +170,12 @@ void BM_LexicallyRelative(benchmark::State& st, GenInput gen, size_t PathLen) {
180
170
for (auto _ : st) {
181
171
benchmark::DoNotOptimize (TargetPath.lexically_relative (BasePath));
182
172
}
183
- st.SetComplexityN (st.range (0 ));
184
173
}
185
174
BENCHMARK_CAPTURE (BM_LexicallyRelative, small_path, getRandomPaths, /* PathLen*/ 5 )
186
175
->RangeMultiplier(2 )
187
- ->Range(2 , 256 )
188
- ->Complexity();
176
+ ->Range(2 , 256 );
189
177
BENCHMARK_CAPTURE (BM_LexicallyRelative, large_path, getRandomPaths, /* PathLen*/ 32 )
190
178
->RangeMultiplier(2 )
191
- ->Range(2 , 256 )
192
- ->Complexity();
179
+ ->Range(2 , 256 );
193
180
194
181
BENCHMARK_MAIN ();
0 commit comments