2015-01-09 21:00:04 -05:00
|
|
|
var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
|
2014-12-22 20:50:10 -05:00
|
|
|
|
|
|
|
describe('ng1.x compiler benchmark', function () {
|
|
|
|
|
|
|
|
var URL = 'benchmarks_external/web/compiler/compiler_benchmark.html';
|
|
|
|
|
2015-01-09 21:00:04 -05:00
|
|
|
afterEach(perfUtil.verifyNoBrowserErrors);
|
2014-12-22 20:50:10 -05:00
|
|
|
|
|
|
|
it('should log withBinding stats', function() {
|
2015-01-09 21:00:04 -05:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#compileWithBindings'],
|
2015-01-09 21:00:04 -05:00
|
|
|
id: 'ng1.compile.withBindings',
|
|
|
|
params: [{
|
2015-01-15 18:14:54 -05:00
|
|
|
name: 'elementCount', value: 150, scale: 'linear'
|
2015-01-09 21:00:04 -05:00
|
|
|
}]
|
2014-12-22 20:50:10 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log noBindings stats', function() {
|
2015-01-09 21:00:04 -05:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#compileNoBindings'],
|
2015-01-09 21:00:04 -05:00
|
|
|
id: 'ng1.compile.noBindings',
|
|
|
|
params: [{
|
2015-01-15 18:14:54 -05:00
|
|
|
name: 'elementCount', value: 150, scale: 'linear'
|
2015-01-09 21:00:04 -05:00
|
|
|
}]
|
2014-12-22 20:50:10 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|