angular/modules/benchmarks/e2e_test/change_detection_perf.es6
Tobias Bosch d02c0accbb refactor(benchmarks): add cloud reporter, add params
- adds console and cloud reporter (via Google BigQuery).
- makes parameters of tests explicit and modifiable.
- removes `detect` and `ignoreGc` mode from benchpress
  as these can result in unstable numbers.
2015-01-15 09:09:05 -08:00

32 lines
758 B
JavaScript

var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 change detection benchmark', function () {
var URL = 'benchmarks/web/change_detection/change_detection_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);
it('should log ng stats', function() {
perfUtil.runClickBenchmark({
url: URL,
buttons: ['#ng2DetectChanges'],
id: 'ng2.changeDetection',
params: [{
name: 'iterations', value: 500000
}]
});
});
it('should log baseline stats', function() {
perfUtil.runClickBenchmark({
url: URL,
buttons: ['#baselineDetectChanges'],
id: 'baseline.changeDetection',
params: [{
name: 'iterations', value: 500000
}]
});
});
});