{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/15767","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/15767/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/15767/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/15767/events","html_url":"https://github.com/flutter/flutter/issues/15767","id":307055568,"node_id":"MDU6SXNzdWUzMDcwNTU1Njg=","number":15767,"title":"Dart2 Flutter Test slow to start (dart2)","user":{"login":"brianegan","id":126604,"node_id":"MDQ6VXNlcjEyNjYwNA==","avatar_url":"https://avatars2.githubusercontent.com/u/126604?v=4","gravatar_id":"","url":"https://api.github.com/users/brianegan","html_url":"https://github.com/brianegan","followers_url":"https://api.github.com/users/brianegan/followers","following_url":"https://api.github.com/users/brianegan/following{/other_user}","gists_url":"https://api.github.com/users/brianegan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianegan/subscriptions","organizations_url":"https://api.github.com/users/brianegan/orgs","repos_url":"https://api.github.com/users/brianegan/repos","events_url":"https://api.github.com/users/brianegan/events{/privacy}","received_events_url":"https://api.github.com/users/brianegan/received_events","type":"User","site_admin":false},"labels":[{"id":283479128,"node_id":"MDU6TGFiZWwyODM0NzkxMjg=","url":"https://api.github.com/repos/flutter/flutter/labels/a:%20tests","name":"a: tests","color":"38d8c8","default":false},{"id":381246489,"node_id":"MDU6TGFiZWwzODEyNDY0ODk=","url":"https://api.github.com/repos/flutter/flutter/labels/dependency:%20dart","name":"dependency: dart","color":"003570","default":false},{"id":298590876,"node_id":"MDU6TGFiZWwyOTg1OTA4NzY=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20performance","name":"severe: performance","color":"e11d21","default":false},{"id":283479271,"node_id":"MDU6TGFiZWwyODM0NzkyNzE=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20regression","name":"severe: regression","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/22","html_url":"https://github.com/flutter/flutter/milestone/22","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/22/labels","id":2270094,"node_id":"MDk6TWlsZXN0b25lMjI3MDA5NA==","number":22,"title":"Goals","description":"P2: These are tasks we think are worth fixing in the coming years. It includes issues we've identified that might block fully shipping broad consumer-facing apps, correctness issues, and bugs relating to polish and quality.\r\n\r\nThe date on this milestone is utterly arbitrary and just intended to sort the milestone appropriately.","creator":{"login":"Hixie","id":551196,"node_id":"MDQ6VXNlcjU1MTE5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"open_issues":1536,"closed_issues":655,"state":"open","created_at":"2017-01-23T00:27:59Z","updated_at":"2018-11-16T07:11:08Z","due_on":"2031-01-01T08:00:00Z","closed_at":null},"comments":53,"created_at":"2018-03-20T22:04:18Z","updated_at":"2018-11-16T08:02:06Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey there! I've been noticing an interesting problem as I upgrade my libs to Dart 2. I run my tests very often, and have seen them take far longer to start up than in Dart 1. If you're running many iterations of a test trying to fix a bug, it can feel a bit sluggish compared to how fast it was before.\r\n\r\n## Steps to Reproduce\r\n\r\n  1. Create a new Flutter project\r\n  2. Enter project\r\n  3. Run `flutter test` from command line\r\n  4. Tests take 5-6 seconds to run\r\n  5. Compare to Dart1, which was 1-2 seconds\r\n\r\n## Logs\r\n\r\n### Dart 1\r\n\r\n```\r\ngunter lab/slow_tests »  time flutter test                                                                  \r\n00:01 +1: All tests passed!                                                                                      \r\nflutter test  2.02s user 0.36s system 111% cpu 2.125 total\r\ngunter lab/slow_tests » time flutter test\r\n00:01 +1: All tests passed!                                                                                      \r\nflutter test  2.01s user 0.35s system 112% cpu 2.104 total\r\ngunter lab/slow_tests » time flutter test\r\n00:01 +1: All tests passed!                                                                                      \r\nflutter test  2.02s user 0.36s system 112% cpu 2.115 total\r\n```\r\n\r\n### Dart 2\r\n\r\n```\r\ngunter lab/slow_tests » time flutter test --preview-dart-2\r\n00:04 +1: All tests passed!                                                                                      \r\nflutter test --preview-dart-2  6.19s user 0.70s system 134% cpu 5.134 total\r\ngunter lab/slow_tests » time flutter test --preview-dart-2\r\n00:04 +1: All tests passed!                                                                                      \r\nflutter test --preview-dart-2  6.26s user 0.68s system 134% cpu 5.163 total\r\ngunter lab/slow_tests » time flutter test --preview-dart-2\r\n00:04 +1: All tests passed!                                                                                      \r\nflutter test --preview-dart-2  6.32s user 0.69s system 134% cpu 5.234 total\r\n```\r\n\r\n## Flutter Doctor\r\n\r\n```dart\r\n[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-US)\r\n    • Flutter version 0.1.5 at /Users/phillywiggins/lab/flutter\r\n    • Framework revision 3ea4d06340 (4 weeks ago), 2018-02-22 11:12:39 -0800\r\n    • Engine revision ead227f118\r\n    • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)\r\n    • Android SDK at /Users/phillywiggins/Library/Android/sdk\r\n    • Android NDK at /Users/phillywiggins/Library/Android/sdk/ndk-bundle\r\n    • Platform android-27, build-tools 27.0.2\r\n    • ANDROID_HOME = /Users/phillywiggins/Library/Android/sdk\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)\r\n    • Xcode at /Applications/Xcode.app/Contents/Developer\r\n    • Xcode 9.2, Build version 9C40b\r\n    • ios-deploy 1.9.2\r\n    • CocoaPods version 1.3.1\r\n\r\n[✓] Android Studio (version 3.0)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)\r\n\r\n[✓] IntelliJ IDEA Community Edition (version 2017.3.5)\r\n    • Flutter plugin version 22.2.2\r\n    • Dart plugin version 173.4548.30\r\n\r\n[✓] VS Code (version 1.21.1)\r\n    • VS Code at /Applications/Visual Studio Code.app/Contents\r\n    • Dart Code extension version 2.8.2\r\n\r\n[✓] Connected devices (1 available)\r\n    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)\r\n\r\n• No issues found!\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/439312415","html_url":"https://github.com/flutter/flutter/issues/15767#issuecomment-439312415","issue_url":"https://api.github.com/repos/flutter/flutter/issues/15767","id":439312415,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTMxMjQxNQ==","user":{"login":"jensjoha","id":20773519,"node_id":"MDQ6VXNlcjIwNzczNTE5","avatar_url":"https://avatars3.githubusercontent.com/u/20773519?v=4","gravatar_id":"","url":"https://api.github.com/users/jensjoha","html_url":"https://github.com/jensjoha","followers_url":"https://api.github.com/users/jensjoha/followers","following_url":"https://api.github.com/users/jensjoha/following{/other_user}","gists_url":"https://api.github.com/users/jensjoha/gists{/gist_id}","starred_url":"https://api.github.com/users/jensjoha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensjoha/subscriptions","organizations_url":"https://api.github.com/users/jensjoha/orgs","repos_url":"https://api.github.com/users/jensjoha/repos","events_url":"https://api.github.com/users/jensjoha/events{/privacy}","received_events_url":"https://api.github.com/users/jensjoha/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T08:02:06Z","updated_at":"2018-11-16T08:02:06Z","author_association":"CONTRIBUTOR","body":"Is what you're saying, that something like `C:\\path\\to\\flutter\\bin\\cache\\dart-sdk\\bin\\dart.exe helloworld.dart` takes 3+ seconds?"}}
{"actor":{"display_login":"jensjoha"}}