Chromium Code Reviews| Index: test/perf/input/empty_test.html |
| diff --git a/test/perf/input/empty_test.html b/test/perf/input/empty_test.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ad49b90adff7dde41019833ca2ecfab9360b6e85 |
| --- /dev/null |
| +++ b/test/perf/input/empty_test.html |
| @@ -0,0 +1,39 @@ |
| +<!DOCTYPE html> |
| +<!-- |
| +Copyright (c) 2012, 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. |
| +--> |
| +<html lang="en"> |
| +<head> |
| +<!-- |
| + This performance test does nothing. The score can be thought as a baseline. |
|
Jennifer Messerly
2013/01/07 21:07:46
I hope the result is pretty close to 0?
Siggi Cherem (dart-lang)
2013/01/08 02:26:18
yeah - for some reason it's 0.11 usec in dart, and
|
| + --> |
| + <meta charset="utf-8"> |
| + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| + <script type="application/javascript" src="testing.js"></script> |
| + <script type="application/javascript" src="start_dart.js"></script> |
| +</head> |
| +<body> |
| + <script type="application/dart"> |
| +import 'dart:html'; |
| +import 'package:web_ui/web_ui.dart'; |
| +import 'package:unittest/unittest.dart'; |
| +import 'perf_common.dart'; |
| + |
| +main() { |
| + useShadowDom = false; |
| + window.setTimeout(() { |
| + var bench = new EmptyBenchmark(); |
| + perfDone(bench.measure()); |
| + }, 0); |
| +} |
| + |
| +class EmptyBenchmark extends BenchmarkBase { |
| + EmptyBenchmark() : super('empty'); |
| + // do nothing |
| + run() {} |
| +} |
| + </script> |
| +</body> |
| +</html> |