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

Unified Diff: test/perf/input/perf_common.dart

Issue 11683002: Setting up benchmarks and perf utilities (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: john comments Created 7 years, 11 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 | « test/perf/input/loop_1_2_test.html ('k') | test/perf/input/start_dart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/perf/input/perf_common.dart
diff --git a/test/perf/input/perf_common.dart b/test/perf/input/perf_common.dart
new file mode 100644
index 0000000000000000000000000000000000000000..33b3b8e3b757febbaac7a983f602280c08436d39
--- /dev/null
+++ b/test/perf/input/perf_common.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2011, 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.
+
+/**
+ * Collects several functions used by all performance tests, and reexports the
+ * base classes from which all benchmarks extend.
+ */
+library perf_common;
+
+import 'dart:html';
+export 'package:benchmark_harness/benchmark_harness.dart';
+export 'async_benchmark.dart';
+
+void perfDone(num score) {
+ var str = (score > 100) ? score.toStringAsFixed(0) : score.toStringAsFixed(2);
+ print('benchmark-score: $str');
+ window.postMessage('done', '*');
+}
« no previous file with comments | « test/perf/input/loop_1_2_test.html ('k') | test/perf/input/start_dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698