Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
minor benchmark changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Dec 30, 2013
1 parent 2c379a3 commit 6a6998f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
},

Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Template instantiation benchmarks</h1>
</select>
<br>
<span>Binding Density (%): </span>
<input id="bindingDensityInput" style="width: 200px" value="0, 1, 2, 4, 8, 16, 32, 64, 100"><br>
<input id="bindingDensityInput" style="width: 200px" value="0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100"><br>

MDV: <input id="mdvCheckbox" type="checkbox" checked>
Handlebars: <input id="handlebarsCheckbox" type="checkbox" checked>
Expand Down

0 comments on commit 6a6998f

Please sign in to comment.