Files
sdk/pkg/front_end/tool/incremental_perf_test.dart
T
Johnni Winther 34fb48bb8a [kernel,front_end] Migrate first wave of pkg/kernel and pkg/front_end
Migrates libraries dependent only on already migrated libraries.

Change-Id: I0e85ee8dbc2afce031b92e0009e71c206a55af28
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179502
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-01-18 15:40:21 +00:00

71 lines
1.8 KiB
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart=2.9
/// Test to ensure that incremental_perf.dart is running without errors.
import 'dart:io';
import 'package:front_end/src/compute_platform_binaries_location.dart'
show computePlatformBinariesLocation;
import 'incremental_perf.dart' as m show main;
main() async {
var sdkOutline = computePlatformBinariesLocation(forceBuildDir: true).resolve(
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
"vm_platform_strong.dill");
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
final helloEntry = ikgBenchmarks.resolve('hello.dart');
final helloEdits = ikgBenchmarks.resolve('hello.edits.json');
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$helloEntry',
'$helloEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$helloEntry',
'$helloEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=minimal',
'$helloEntry',
'$helloEdits'
]);
final dart2jsEntry = ikgBenchmarks.resolve('dart2js.dart');
final dart2jsEdits = ikgBenchmarks.resolve('dart2js.edits.json');
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'$dart2jsEntry',
'$dart2jsEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=default',
'$dart2jsEntry',
'$dart2jsEdits'
]);
await m.main([
'--no-loop',
'--sdk-summary',
'$sdkOutline',
'--implementation=minimal',
'$dart2jsEntry',
'$dart2jsEdits'
]);
}