2015-01-15 13:52:48 -05:00
|
|
|
var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
|
|
|
|
|
|
|
|
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) {
|
|
|
|
it('should log the stats with: ' + benchmarkType, function() {
|
|
|
|
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
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|