2015-01-09 18:00:04 -08:00
|
|
|
var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
|
2014-12-22 17:50:10 -08:00
|
|
|
|
|
|
|
describe('ng2 change detection benchmark', function () {
|
|
|
|
|
2015-02-02 16:25:34 -08:00
|
|
|
var URL = 'benchmarks/src/change_detection/change_detection_benchmark.html';
|
2014-12-22 17:50:10 -08:00
|
|
|
|
2015-01-09 18:00:04 -08:00
|
|
|
afterEach(perfUtil.verifyNoBrowserErrors);
|
2014-12-22 17:50:10 -08:00
|
|
|
|
|
|
|
it('should log ng stats', function() {
|
2015-01-09 18:00:04 -08:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 17:50:10 -08:00
|
|
|
buttons: ['#ng2DetectChanges'],
|
2015-01-09 18:00:04 -08:00
|
|
|
id: 'ng2.changeDetection',
|
|
|
|
params: [{
|
2015-01-15 15:14:54 -08:00
|
|
|
name: 'iterations', value: 500000, scale: 'linear'
|
2015-01-09 18:00:04 -08:00
|
|
|
}]
|
2014-12-22 17:50:10 -08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log baseline stats', function() {
|
2015-01-09 18:00:04 -08:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 17:50:10 -08:00
|
|
|
buttons: ['#baselineDetectChanges'],
|
2015-01-09 18:00:04 -08:00
|
|
|
id: 'baseline.changeDetection',
|
|
|
|
params: [{
|
2015-01-15 15:14:54 -08:00
|
|
|
name: 'iterations', value: 500000, scale: 'linear'
|
2015-01-09 18:00:04 -08:00
|
|
|
}]
|
2014-12-22 17:50:10 -08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|