@@ -42,7 +42,7 @@ void main() {
42
42
() async {
43
43
await _runBenchmarks (useWasm: useWasm);
44
44
},
45
- timeout: const Timeout (Duration (minutes: 10 )),
45
+ timeout: const Timeout (Duration (minutes: 15 )),
46
46
retry: 1 ,
47
47
);
48
48
}
@@ -123,7 +123,7 @@ void _verifyScoresAgainstThresholds(
123
123
}) {
124
124
final identifier = '${devToolsBenchmark .id }.${useWasm ? 'wasm' : 'js' }' ;
125
125
stdout.writeln ('Verifying $identifier scores against expected thresholds.' );
126
- final benchmarkThresholds = _benchmarkThresholds (useWasm);
126
+ final benchmarkThresholds = _benchmarkThresholds (/* useWasm*/ );
127
127
expect (
128
128
benchmarkThresholds.containsKey (devToolsBenchmark),
129
129
isTrue,
@@ -171,71 +171,58 @@ void _verifyScoresAgainstThresholds(
171
171
}
172
172
173
173
const _frameTimeFor60FPSInMicros = 16666.6 ;
174
- const _frameTimeFor30FPSInMicros = 33333.3 ;
174
+ // const _frameTimeFor30FPSInMicros = 33333.3;
175
175
176
176
/// Creates the expected [DevToolsBenchmark] s for the specified compiler.
177
- ///
178
- /// Note that some of the wasm benchmarks use a 30fps frame budget instead of
179
- /// the 60fps frame budget due to https://issues.chromium.org/issues/396208308.
180
- Map <DevToolsBenchmark , Map <String , num >> _benchmarkThresholds (bool isWasm) => {
181
- // Note that some of these benchmarks exceed the 60fps frame budget,
182
- // especially the p90 benchmarks.
183
- //
184
- // See https://github.com/flutter/devtools/pull/8892 which exposes this.
177
+ Map <DevToolsBenchmark , Map <String , num >> _benchmarkThresholds (
178
+ /*bool isWasm*/
179
+ ) => {
185
180
DevToolsBenchmark .navigateThroughOfflineScreens: {
186
181
..._valuesForMetric (
187
182
BenchmarkMetric .flutterFrameTotalTime,
188
- avg: _frameTimeFor60FPSInMicros * 2 ,
183
+ avg: _frameTimeFor60FPSInMicros,
189
184
p50: _frameTimeFor60FPSInMicros,
190
- p90: _frameTimeFor60FPSInMicros * 6 ,
185
+ p90: _frameTimeFor60FPSInMicros,
191
186
),
192
187
..._valuesForMetric (
193
188
BenchmarkMetric .flutterFrameBuildTime,
194
- avg: _frameTimeFor60FPSInMicros * 2 ,
189
+ avg: _frameTimeFor60FPSInMicros,
195
190
p50: _frameTimeFor60FPSInMicros,
196
191
p90: _frameTimeFor60FPSInMicros,
197
192
),
198
193
..._valuesForMetric (
199
194
BenchmarkMetric .flutterFrameRasterTime,
200
- avg: _frameTimeFor60FPSInMicros * 2 ,
195
+ avg: _frameTimeFor60FPSInMicros,
201
196
p50: _frameTimeFor60FPSInMicros,
202
197
p90: _frameTimeFor60FPSInMicros,
203
198
),
204
199
},
205
- // Note that some of these benchmarks exceed the 60fps frame budget,
206
- // especially the p90 benchmarks.
207
- //
208
- // See https://github.com/flutter/devtools/pull/8892 which exposes this.
209
200
DevToolsBenchmark .offlineCpuProfilerScreen: {
210
201
..._valuesForMetric (
211
202
BenchmarkMetric .flutterFrameTotalTime,
212
- avg:
213
- (isWasm ? _frameTimeFor30FPSInMicros : _frameTimeFor60FPSInMicros) *
214
- 2 ,
215
- p50: isWasm ? _frameTimeFor30FPSInMicros * 2 : _frameTimeFor60FPSInMicros,
216
- p90: _frameTimeFor60FPSInMicros * 6 ,
203
+ avg: _frameTimeFor60FPSInMicros,
204
+ p50: _frameTimeFor60FPSInMicros,
205
+ p90: _frameTimeFor60FPSInMicros,
217
206
),
218
207
..._valuesForMetric (
219
208
BenchmarkMetric .flutterFrameBuildTime,
220
- avg: _frameTimeFor60FPSInMicros * 2 ,
209
+ avg: _frameTimeFor60FPSInMicros,
221
210
p50: _frameTimeFor60FPSInMicros,
222
- p90: isWasm ? _frameTimeFor30FPSInMicros : _frameTimeFor60FPSInMicros,
211
+ p90: _frameTimeFor60FPSInMicros,
223
212
),
224
213
..._valuesForMetric (
225
214
BenchmarkMetric .flutterFrameRasterTime,
226
- avg:
227
- (isWasm ? _frameTimeFor30FPSInMicros : _frameTimeFor60FPSInMicros) *
228
- 2 ,
229
- p50: isWasm ? _frameTimeFor30FPSInMicros * 2 : _frameTimeFor60FPSInMicros,
230
- p90: isWasm ? _frameTimeFor30FPSInMicros * 3 : _frameTimeFor60FPSInMicros,
215
+ avg: _frameTimeFor60FPSInMicros,
216
+ p50: _frameTimeFor60FPSInMicros,
217
+ p90: _frameTimeFor60FPSInMicros,
231
218
),
232
219
},
233
220
DevToolsBenchmark .offlinePerformanceScreen: {
234
221
..._valuesForMetric (
235
222
BenchmarkMetric .flutterFrameTotalTime,
236
223
avg: _frameTimeFor60FPSInMicros,
237
224
p50: _frameTimeFor60FPSInMicros,
238
- p90: _frameTimeFor30FPSInMicros ,
225
+ p90: _frameTimeFor60FPSInMicros ,
239
226
),
240
227
..._valuesForMetric (
241
228
BenchmarkMetric .flutterFrameBuildTime,
0 commit comments