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('ng2 change detection benchmark', function () {
|
|
|
|
|
|
|
|
var URL = 'benchmarks/web/change_detection/change_detection_benchmark.html';
|
|
|
|
|
2015-01-09 21:00:04 -05:00
|
|
|
afterEach(perfUtil.verifyNoBrowserErrors);
|
2014-12-22 20:50:10 -05:00
|
|
|
|
|
|
|
it('should log ng stats', function() {
|
2015-01-09 21:00:04 -05:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#ng2DetectChanges'],
|
2015-01-09 21:00:04 -05:00
|
|
|
id: 'ng2.changeDetection',
|
|
|
|
params: [{
|
|
|
|
name: 'iterations', value: 500000
|
|
|
|
}]
|
2014-12-22 20:50:10 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log baseline stats', function() {
|
2015-01-09 21:00:04 -05:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#baselineDetectChanges'],
|
2015-01-09 21:00:04 -05:00
|
|
|
id: 'baseline.changeDetection',
|
|
|
|
params: [{
|
|
|
|
name: 'iterations', value: 500000
|
|
|
|
}]
|
2014-12-22 20:50:10 -05:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|