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

Side by Side Diff: test/perf/input/create_10_test.html

Issue 11683002: Setting up benchmarks and perf utilities (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: john comments 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
« no previous file with comments | « test/perf/input/create_100_test.html ('k') | test/perf/input/create_1_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 instantiates 10 custom elements.
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 <element name="x-e" extends="span">
19 <template>.</template>
20 </element>
21 <template instantiate="if cond">
22 <x-e></x-e><x-e></x-e><x-e></x-e><x-e></x-e><x-e></x-e>
23 <x-e></x-e><x-e></x-e><x-e></x-e><x-e></x-e><x-e></x-e>
24 </template>
25 <script type="application/dart">
26 import 'dart:html';
27 import 'package:web_ui/web_ui.dart';
28 import 'package:unittest/unittest.dart';
29 import 'perf_common.dart';
30
31 main() {
32 useShadowDom = false;
33 window.setTimeout(() {
34 var bench = new CreateBenchmark();
35 perfDone(bench.measure());
36 }, 0);
37 }
38
39 bool cond = false;
40
41 class CreateBenchmark extends BenchmarkBase {
42 CreateBenchmark() : super('create-10');
43 setup() {
44 cond = false;
45 }
46
47 run() {
48 cond = true;
49 dispatch();
50 }
51 }
52 </script>
53 </body>
54 </html>
OLDNEW
« no previous file with comments | « test/perf/input/create_100_test.html ('k') | test/perf/input/create_1_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698