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

Unified Diff: sky/benchmarks/framework/flights-app.sky

Issue 834983002: Add SkyBinder benchmarks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 12 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
« no previous file with comments | « sky/benchmarks/framework/city-list.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/benchmarks/framework/flights-app.sky
diff --git a/sky/benchmarks/framework/flights-app.sky b/sky/benchmarks/framework/flights-app.sky
new file mode 100644
index 0000000000000000000000000000000000000000..4b480550d0499564dd1fd4a5100e67cfd1f752f3
--- /dev/null
+++ b/sky/benchmarks/framework/flights-app.sky
@@ -0,0 +1,24 @@
+<sky>
+<import src="/sky/benchmarks/resources/runner.sky" as="PerfRunner" />
+<import src="/sky/examples/flights-app/flights-app.sky" as="FlightsAppElement" />
+<script>
+var sky = document.querySelector("sky");
+var element;
+
+var runner = new PerfRunner({
+ setup: function() {
+ // Don't benchmark removal.
+ if (element)
+ element.remove();
+ },
+ iterations: 10,
+ unit: "ms",
+});
+
+runner.runAsync(function(done) {
+ element = new FlightsAppElement();
+ sky.appendChild(element);
+ done();
+});
+</script>
+</sky>
« no previous file with comments | « sky/benchmarks/framework/city-list.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698