angular-cn/modules/benchmarks/e2e_test/compiler_perf.es6

32 lines
773 B
Plaintext
Raw Normal View History

var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 compiler benchmark', function () {
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);
it('should log withBindings stats', function() {
perfUtil.runClickBenchmark({
url: URL,
buttons: ['#compileWithBindings'],
id: 'ng2.compile.withBindings',
params: [{
name: 'elementCount', selector: '#elementCount', value: 150
}]
});
});
it('should log noBindings stats', function() {
perfUtil.runClickBenchmark({
url: URL,
buttons: ['#compileNoBindings'],
id: 'ng2.compile.noBindings',
params: [{
name: 'elementCount', value: 150
}]
});
});
});