angular-cn/modules/benchmarks/test/perf/tree_perf.js

27 lines
645 B
JavaScript
Raw Normal View History

"use strict";
var util = require('../../../../tools/perf/util.js');
describe('ng2 tree benchmark', function () {
var URL = 'benchmarks/web/tree/tree_benchmark.html';
afterEach(util.verifyNoErrors);
it('should log the ng stats', function() {
browser.get(URL);
util.runClickBenchmark({
buttons: ['#ng2DestroyDom', '#ng2CreateDom'],
name: browser.params.lang+'.ng2.tree'
});
});
it('should log the baseline stats', function() {
browser.get(URL);
util.runClickBenchmark({
buttons: ['#baselineDestroyDom', '#baselineCreateDom'],
name: browser.params.lang+'.baseline.tree'
});
});
});