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

Side by Side Diff: samples/third_party/todomvc_performance/js_todomvc/index.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 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6 <title>Polymer • TodoMVC</title>
7 <link rel="stylesheet" href="app/app.css">
8 <script src="components/platform/platform.js"></script>
9 <link rel="import" href="components/polymer-localstorage/polymer -localstorage.html">
10 <link rel="import" href="elements/td-model.html">
11 <link rel="import" href="elements/td-todos.html">
12 <script src="packages/browser_controller/perf_test_controller.js"></script>
13 <script type="application/javascript">
14 var startTime = new Date().getTime();
15
16 window.addEventListener('polymer-ready', function(e) {
17 var endTime = new Date().getTime();
18 var startupTime = endTime - startTime;
19 document.body.innerHTML = 'The startup time is ' + startupTime + ' milli seconds.';
20 reportPerformanceTestDone();
21 });
22 </script>
23 </head>
24 <body>
25 <header>
26 <h1>todos</h1>
27 </header>
28 <polymer-localstorage id="storage" name="todos-polymer"></polyme r-localstorage>
29 <td-model id="model" storageId="storage"></td-model>
30 <td-todos modelId="model"></td-todos>
31 <footer id="info">
32 <p>Double-click to edit a todo</p>
33 <p>Created by <a href="http://www.polymer-project.org">T he Polymer Authors</a></p>
34 <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
35 </footer>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698