| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 for details. All rights reserved. Use of this source code is governed by a |
| 5 BSD-style license that can be found in the LICENSE file. |
| 6 --> |
| 7 <html lang="en"> |
| 8 <head> |
| 9 <!-- |
| 10 This performance test does nothing. The score can be thought as a baseline. |
| 11 --> |
| 12 <meta charset="utf-8"> |
| 13 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 14 <script type="application/javascript" src="testing.js"></script> |
| 15 <script type="application/javascript" src="start_dart.js"></script> |
| 16 </head> |
| 17 <body> |
| 18 <script type="application/dart"> |
| 19 import 'dart:html'; |
| 20 import 'package:web_ui/web_ui.dart'; |
| 21 import 'package:unittest/unittest.dart'; |
| 22 import 'perf_common.dart'; |
| 23 |
| 24 main() { |
| 25 useShadowDom = false; |
| 26 window.setTimeout(() { |
| 27 var bench = new EmptyBenchmark(); |
| 28 perfDone(bench.measure()); |
| 29 }, 0); |
| 30 } |
| 31 |
| 32 class EmptyBenchmark extends BenchmarkBase { |
| 33 EmptyBenchmark() : super('empty'); |
| 34 // do nothing |
| 35 run() {} |
| 36 } |
| 37 </script> |
| 38 </body> |
| 39 </html> |
| OLD | NEW |