2015-02-11 14:40:29 -05:00
|
|
|
var perfUtil = require('angular2/e2e_test/perf_util');
|
2015-01-15 13:52:48 -05:00
|
|
|
|
|
|
|
describe('ng1.x largetable benchmark', function () {
|
2015-02-02 19:25:34 -05:00
|
|
|
var URL = 'benchmarks_external/src/largetable/largetable_benchmark.html';
|
2015-01-15 13:52:48 -05:00
|
|
|
|
|
|
|
afterEach(perfUtil.verifyNoBrowserErrors);
|
|
|
|
|
|
|
|
[
|
|
|
|
'baselineBinding',
|
|
|
|
'baselineInterpolation',
|
|
|
|
'ngBind',
|
|
|
|
'ngBindOnce',
|
|
|
|
'interpolation',
|
|
|
|
'interpolationAttr',
|
|
|
|
'ngBindFn',
|
|
|
|
'interpolationFn',
|
|
|
|
'ngBindFilter',
|
|
|
|
'interpolationFilter'
|
|
|
|
].forEach(function(benchmarkType) {
|
2015-02-11 13:13:49 -05:00
|
|
|
it('should log the stats with: ' + benchmarkType, function(done) {
|
2015-01-15 13:52:48 -05:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
|
|
|
buttons: ['#destroyDom', '#createDom'],
|
|
|
|
id: 'ng1.largetable.' + benchmarkType,
|
|
|
|
params: [{
|
|
|
|
name: 'columns',
|
2015-01-15 18:14:54 -05:00
|
|
|
value: 100,
|
|
|
|
scale: 'sqrt'
|
2015-01-15 13:52:48 -05:00
|
|
|
},{
|
|
|
|
name: 'rows',
|
2015-01-15 18:14:54 -05:00
|
|
|
value: 20,
|
|
|
|
scale: 'sqrt'
|
2015-01-15 13:52:48 -05:00
|
|
|
},{
|
|
|
|
name: 'benchmarkType',
|
|
|
|
value: benchmarkType
|
|
|
|
}]
|
2015-02-11 13:13:49 -05:00
|
|
|
}).then(done, done.fail);
|
2015-01-15 13:52:48 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|