| 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', '*');
|
| +}
|
|
|