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

Unified Diff: sky/benchmarks/framework/city-list.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 | « no previous file | sky/benchmarks/framework/flights-app.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/benchmarks/framework/city-list.sky
diff --git a/sky/benchmarks/framework/city-list.sky b/sky/benchmarks/framework/city-list.sky
new file mode 100644
index 0000000000000000000000000000000000000000..36ae1e1b1d50934677c49bb15cd42a7314c9aed3
--- /dev/null
+++ b/sky/benchmarks/framework/city-list.sky
@@ -0,0 +1,28 @@
+<sky>
+<import src="/sky/benchmarks/resources/runner.sky" as="PerfRunner" />
+<import src="/sky/examples/city-list/city-list.sky" as="citylist" />
+<script>
+var sky = document.querySelector("sky");
+var element;
+
+var CityListElement = citylist.CityListElement;
+
+var runner = new PerfRunner({
+ setup: function() {
+ // Don't benchmark removal.
+ if (element)
+ element.remove();
+ },
+ iterations: 10,
+ unit: "ms",
+});
+
+runner.runAsync(function(done) {
+ element = new CityListElement();
+ sky.appendChild(element);
+ element.addEventListener('load', function() {
+ done();
+ });
+});
+</script>
+</sky>
« no previous file with comments | « no previous file | sky/benchmarks/framework/flights-app.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698