From 6a6998fbf6433cd75fe1e7ea0c5f9808de3157d5 Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Mon, 30 Dec 2013 11:12:51 -0800 Subject: [PATCH] minor benchmark changes --- benchmark/benchmark.js | 8 +++++--- benchmark/index.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index c08705a..1d88861 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -214,8 +214,8 @@ HTMLTemplateElement.decorate(this.template); if (this.expressions) this.template.bindingDelegate = new PolymerExpressions; - - this.template.content.appendChild(this.fragment.cloneNode(true)); + var clone = this.fragment.cloneNode(true); + this.template.content.appendChild(clone); this.template.setAttribute('repeat', ''); }, @@ -225,8 +225,10 @@ }, teardownMDVVariant: function() { - this.template.bindings.iterator.close(); + if (this.template.bindings) + this.template.bindings.iterator.close(); this.template = undefined; + testDiv.innerHTML = ''; }, setupHandlebarsVariant: function() { diff --git a/benchmark/index.html b/benchmark/index.html index e20dc09..1893c3f 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -65,7 +65,7 @@

Template instantiation benchmarks


Binding Density (%): -
+
MDV: Handlebars: