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

Side by Side Diff: samples/third_party/todomvc_performance/web/startup-performance.html

Issue 204733004: Added TodoMVC startup benchmarks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2
3 <!--
4 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
5 for details. All rights reserved. Use of this source code is governed by a
6 BSD-style license that can be found in the LICENSE file.
7 -->
8
9 <html lang="en">
10 <head>
11 <meta charset="utf-8">
12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13
14 <script type="application/javascript">
15
16 // TODO(efortuna): Revisit in a bit -- should we use
17 // performance.timing.navigationStart or performance.timing.domLoading?
Jennifer Messerly 2014/03/28 19:51:07 yeah, the nice thing about using these times is yo
18 // navigationStart may be a bit noisy. Re-evaluate after we have more
19 // data.
20 var startTime = new Date().getTime();
21 function onReceive(e) {
22 // Listen for a timestamp signifying when app startup is complete.
23 var endTime = e.data;
24 var startupTime = endTime - startTime;
25 document.body.innerHTML = 'The startup time is ' + startupTime +
26 ' milliseconds.';
27 reportPerformanceTestDone();
28 }
29 window.addEventListener('message', onReceive, true);
30 </script>
31
32 <script src="packages/browser_controller/perf_test_controller.js"></script>
33 <title> TodoMVC • Startup Performance </title>
34 <link rel="stylesheet" href="app/app.css">
35 <link rel="import" href="packages/polymer/polymer.html">
36 <link rel="import" href="lib-elements/polymer_localstorage.html">
37 <link rel="import" href="elements/td_model.html">
38 <link rel="import" href="elements/td_todos.html">
39 </head>
40 <body>
41 <header>
42 <h1>todos</h1>
43 </header>
44 <polymer-localstorage id="storage" name="todos-polymer">
45 </polymer-localstorage>
46 <td-model id="model" storageId="storage"></td-model>
47 <td-todos modelId="model"></td-todos>
48 <script type="application/dart" src="performance.dart"></script>
49 <footer id="info">
50 <p>Double-click to edit a todo</p>
51 <p>Created by <a href="https://www.dartlang.org/polymer-dart/">
52 The Polymer.dart Authors</a></p>
53 <p>This example was built using a pre-alpha version of Polymer.dart.</p>
54 <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
55 </footer>
56 </body>
57 </html>
OLDNEW
« no previous file with comments | « samples/third_party/todomvc_performance/web/performance.dart ('k') | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698