Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Unified Diff: pkg/front_end/tool/fasta/compile.dart

Issue 2733033002: Revert "A/B fasta performance measurement harness" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/tool/fasta/abcompile.dart ('k') | pkg/front_end/tool/fasta/standard_deviation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/tool/fasta/compile.dart
diff --git a/pkg/front_end/tool/fasta/compile.dart b/pkg/front_end/tool/fasta/compile.dart
index 942a9e7be3a36059a6c163bf8ad97872897e9f31..fc7ccb3ce75226fc5e05cbe4c2ae6725056d6dfe 100644
--- a/pkg/front_end/tool/fasta/compile.dart
+++ b/pkg/front_end/tool/fasta/compile.dart
@@ -2,43 +2,6 @@
// 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.
-import 'dart:math';
+import 'package:front_end/src/fasta/outline.dart' show compileEntryPoint;
-import 'package:front_end/src/fasta/outline.dart' as outline;
-
-import 'standard_deviation.dart';
-
-const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
-
-main(List<String> arguments) async {
- // Timing results for each iteration
- List<double> elapseTimes = <double>[];
-
- for (int i = 0; i < iterations; i++) {
- if (i > 0) {
- print("\n");
- }
-
- var stopwatch = new Stopwatch()..start();
- await outline.compile(arguments);
- stopwatch.stop();
-
- elapseTimes.add(stopwatch.elapsedMilliseconds.toDouble());
- }
-
- // Calculate the mean of warm runs (#4 to n)
- List<double> warmTimes = elapseTimes.sublist(3);
- double mean = average(warmTimes);
-
- // Calculate the standard deviation
- double stdDev = standardDeviation(mean, warmTimes);
-
- // Calculate the standard deviation of the mean
- double stdDevOfTheMean = standardDeviationOfTheMean(warmTimes, stdDev);
-
- print('Summary:');
- print(' Elapse times: $elapseTimes');
- print(' Cold start (first run): ${elapseTimes[0]}');
- print(' Warm run average (runs #4 to #$iterations): $mean');
- print(' Warm run standard deviation of the mean: $stdDevOfTheMean');
-}
+main(List<String> arguments) => compileEntryPoint(arguments);
« no previous file with comments | « pkg/front_end/tool/fasta/abcompile.dart ('k') | pkg/front_end/tool/fasta/standard_deviation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698