44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<body>
|
|
|
|
<h2>Params</h2>
|
|
<form>
|
|
Depth:
|
|
<input type="number" name="depth" placeholder="depth" value="9">
|
|
<br>
|
|
<button>Apply</button>
|
|
</form>
|
|
|
|
<h2>Ng1 Tree Benchmark</h2>
|
|
<p>
|
|
<button id="destroyDom">destroyDom</button>
|
|
<button id="createDom">createDom</button>
|
|
<button id="detectChanges">detectChanges</button>
|
|
<button id="updateDomProfile">profile updateDom</button>
|
|
<button id="createDomProfile">profile createDom</button>
|
|
<button id="detectChangesProfile">profile detectChanges</button>
|
|
</p>
|
|
|
|
<div>
|
|
Change detection runs:<span id="numberOfChecks"></span>
|
|
</div>
|
|
<div>
|
|
<tree id="root" data="initData">Loading...</tree>
|
|
</div>
|
|
|
|
<script>
|
|
var mainUrls = [
|
|
'/all/benchmarks/vendor/angular.js',
|
|
'../../bootstrap_plain.js'
|
|
];
|
|
var mainUrl = window.location.search.split(/[?&]main=([^&]+)/)[1];
|
|
if (mainUrl) {
|
|
mainUrls = [mainUrl];
|
|
}
|
|
mainUrls.forEach(function(mainUrl) {
|
|
document.write('<script src="' + mainUrl + '">\u003c/script>');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |