Skip to content

Commit

Permalink
updated vdom bench
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Dec 8, 2016
1 parent a27ed7e commit 7226423
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/vdom-bench/main.js
Expand Up @@ -16,9 +16,9 @@
for (i = 0; i < nodes.length; i++) {
n = nodes[i];
if (n.children !== null) {
children[i] = createVNode(34, 'div', null, renderTree(n.children), n.key, null, true);
children[i] = createVNode(34, 'div', null, renderTree(n.children), null, n.key, null, true);
} else {
children[i] = createVNode(2, 'span', null, n.key, n.key, null, true);
children[i] = createVNode(2, 'span', null, n.key, null, n.key, null, true);
}
}
return children;
Expand All @@ -39,14 +39,14 @@

BenchmarkImpl.prototype.render = function () {
Inferno.render(
createVNode(34, 'div', null, renderTree(this.a), null, null, true),
createVNode(34, 'div', null, renderTree(this.a), null, null, null, true),
this.container
);
};

BenchmarkImpl.prototype.update = function () {
Inferno.render(
createVNode(34, 'div', null, renderTree(this.b), null, null, true),
createVNode(34, 'div', null, renderTree(this.b), null, null, null, true),
this.container
);
};
Expand Down

0 comments on commit 7226423

Please sign in to comment.