Train kernel-service on Windows

Now, on Windows:
hello.dart (hello world script): ~0.33s, ~0.33s, ~0.29s, ~0.28s, ~0.29s
pkg\complier\bin\dart2js.dart --help: ~3.37s, ~3.36s, ~3.40s, ~3.50s, ~3.41s

Before, on Windows:
hello.dart (hello world script): ~0.85s, ~0.87s, ~0.86s, ~0.90s, ~0.91s
pkg\complier\bin\dart2js.dart --help: ~6.12s, ~6.20s, ~6.26s, ~6.13s, ~6.04s

So...:
hello.dart (hello world script): -65.3759% +/- 4.15274% at 95.0% confidence
pkg\complier\bin\dart2js.dart --help: -44.5854% +/- 1.68273% at 95.0% confidence

Change-Id: I6679a7fff68c146390ef70832278ece6eb120c7c
Reviewed-on: https://dart-review.googlesource.com/73921
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
This commit is contained in:
Jens Johansen 2018-09-07 14:31:03 +00:00 committed by commit-bot@chromium.org
parent cbab413950
commit 1e4b3e9754
2 changed files with 1 additions and 4 deletions

View file

@ -547,9 +547,6 @@ FileSystem _buildFileSystem(List sourceFiles, List<int> platformKernel,
}
train(String scriptUri, String platformKernelPath) {
// TODO(28532): Enable on Windows.
if (Platform.isWindows) return;
var tag = kTrainTag;
var responsePort = new RawReceivePort();
responsePort.handler = (response) {

View file

@ -29,7 +29,7 @@ kernel_application_snapshot("kernel-service_snapshot") {
]
training_args = [
"--train",
"file://" + rebase_path("../../pkg/compiler/lib/src/dart2js.dart"),
"file:///" + rebase_path("../../pkg/compiler/lib/src/dart2js.dart"),
]
output = "$root_gen_dir/kernel-service.dart.snapshot"
}