build: remove outdated polymer tree benchmark (#28568)
The "tree/polymer_leaves" benchmark has no benchmark tests, nor do we install
Polymer anywhere. Polymer was previously installed through `bower`, but since
we removed bower, there is no easy way to run this benchmark with Polymer.
Considering that there are no benchmark tests, nor we have an easy way to
install/vendor Polymer, we should just remove this benchmark app.
This is also based on the assumption that we want to remove the
Polymer benchmarks anyway: see: 8a05199fb9
PR Close #28568
This commit is contained in:
parent
aadc332be2
commit
7115e7c427
|
@ -1,34 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<link rel="import" href="tree_leaf.html">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<h2>Params</h2>
|
|
||||||
<form>
|
|
||||||
Depth:
|
|
||||||
<input type="number" name="depth" placeholder="depth" value="9">
|
|
||||||
<br>
|
|
||||||
<button>Apply</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<h2>Polymer Leaves Benchmark</h2>
|
|
||||||
<p>
|
|
||||||
<button id="destroyDom">destroyDom</button>
|
|
||||||
<button id="createDom">createDom</button>
|
|
||||||
<button id="updateDomProfile">profile updateDom</button>
|
|
||||||
<button id="createDomProfile">profile createDom</button>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<binary-tree id="root"></binary-tree>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="../../bootstrap_plain.js"></script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
|
@ -1,32 +0,0 @@
|
||||||
/**
|
|
||||||
* @license
|
|
||||||
* Copyright Google Inc. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Use of this source code is governed by an MIT-style license that can be
|
|
||||||
* found in the LICENSE file at https://angular.io/license
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {bindAction} from '../../util';
|
|
||||||
import {buildTree, flattenTree} from '../util';
|
|
||||||
|
|
||||||
declare var Polymer: any;
|
|
||||||
|
|
||||||
export function main() {
|
|
||||||
const rootEl: any = document.querySelector('binary-tree');
|
|
||||||
|
|
||||||
function destroyDom() {
|
|
||||||
while (rootEl.firstChild) rootEl.removeChild(rootEl.firstChild);
|
|
||||||
}
|
|
||||||
|
|
||||||
function createDom() {
|
|
||||||
const flatTree = flattenTree(buildTree(), []);
|
|
||||||
for (let i = 0; i < flatTree.length; i++) {
|
|
||||||
const el: any = document.createElement('tree-leaf');
|
|
||||||
el.data = flatTree[i];
|
|
||||||
rootEl.appendChild(el);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bindAction('#destroyDom', destroyDom);
|
|
||||||
bindAction('#createDom', createDom);
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
<link rel="import" href="/all/benchmarks/vendor/polymer/polymer.html">
|
|
||||||
<dom-module id="tree-leaf">
|
|
||||||
<template>
|
|
||||||
<span style="[[data.style]]"> {{data.value}} </span>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
Polymer({
|
|
||||||
is: 'tree-leaf',
|
|
||||||
properties: {
|
|
||||||
data: {}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</dom-module>
|
|
Loading…
Reference in New Issue