| OLD | NEW |
| (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 } |
| OLD | NEW |