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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: samples/third_party/todomvc_performance/js_todomvc/index.html
diff --git a/samples/third_party/todomvc_performance/js_todomvc/index.html b/samples/third_party/todomvc_performance/js_todomvc/index.html
new file mode 100755
index 0000000000000000000000000000000000000000..7a8cf6ebe5792a615e832d60a7d89b8d7f22cde3
--- /dev/null
+++ b/samples/third_party/todomvc_performance/js_todomvc/index.html
@@ -0,0 +1,37 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <title>Polymer • TodoMVC</title>
+ <link rel="stylesheet" href="app/app.css">
+ <script src="components/platform/platform.js"></script>
+ <link rel="import" href="components/polymer-localstorage/polymer-localstorage.html">
+ <link rel="import" href="elements/td-model.html">
+ <link rel="import" href="elements/td-todos.html">
+ <script src="packages/browser_controller/perf_test_controller.js"></script>
+ <script type="application/javascript">
+ var startTime = new Date().getTime();
+
+ window.addEventListener('WebComponentsReady', function(e) {
+ var endTime = new Date().getTime();
+ var startupTime = endTime - startTime;
+ document.body.innerHTML = 'The startup time is ' + startupTime + ' milliseconds.';
+ reportPerformanceTestDone();
+ });
+ </script>
+ </head>
+ <body>
+ <header>
+ <h1>todos</h1>
+ </header>
+ <polymer-localstorage id="storage" name="todos-polymer"></polymer-localstorage>
+ <td-model id="model" storageId="storage"></td-model>
+ <td-todos modelId="model"></td-todos>
+ <footer id="info">
+ <p>Double-click to edit a todo</p>
+ <p>Created by <a href="http://www.polymer-project.org">The Polymer Authors</a></p>
+ <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
+ </footer>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698