Don't do performance testing in checked mode
This makes startup 1500ms instead of 1700ms. @chinmaygarde @hixie
This commit is contained in:
parent
73e62d386b
commit
20deda1def
@ -7,7 +7,7 @@ import 'dart:io';
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
const int ITERATIONS = 3;
|
const int ITERATIONS = 5;
|
||||||
|
|
||||||
String runWithLoggingSync(List<String> cmd, {
|
String runWithLoggingSync(List<String> cmd, {
|
||||||
bool checked: true,
|
bool checked: true,
|
||||||
@ -46,6 +46,7 @@ Future<double> test(String tracesDir, String projectPath, int runNumber) async {
|
|||||||
runWithLoggingSync([
|
runWithLoggingSync([
|
||||||
'flutter',
|
'flutter',
|
||||||
'start',
|
'start',
|
||||||
|
'--no-checked',
|
||||||
'--trace-startup'
|
'--trace-startup'
|
||||||
], workingDirectory: projectPath);
|
], workingDirectory: projectPath);
|
||||||
await new Future.delayed(const Duration(seconds: 2), () => "");
|
await new Future.delayed(const Duration(seconds: 2), () => "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user