Skip to content

Commit

Permalink
Update perf test to use strict-binding-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Feb 25, 2018
1 parent ab93ab0 commit f53e9e8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/perf/binding-expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script src="../../bower_components/perf-tester/perf.js"></script>
<script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../polymer.html">
<link rel="import" href="../../lib/mixins/strict-binding-parser.html">
</head>

<body>
Expand Down Expand Up @@ -64,14 +65,14 @@
}
console.perf();
for (var i=0; i<COUNT; i++) {
const klass = Polymer({
is: 'test-el-' + i,
_template: templates[i]
});
const klass = class Foo extends Polymer.StrictBindingParser(Polymer.Element) {
static get _template() { return templates[i]; }
};
customElements.define('foo-' + i, klass);
new klass();
}
console.perfEnd();
</script>

</body>
</html>
</html>

0 comments on commit f53e9e8

Please sign in to comment.