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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * Collects several functions used by all performance tests, and reexports the
7 * base classes from which all benchmarks extend.
8 */
9 library perf_common;
10
11 import 'dart:html';
12 export 'package:benchmark_harness/benchmark_harness.dart';
13 export 'async_benchmark.dart';
14
15 void perfDone(num score) {
16 var str = (score > 100) ? score.toStringAsFixed(0) : score.toStringAsFixed(2);
17 print('benchmark-score: $str');
18 window.postMessage('done', '*');
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698