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 compiler benchmark', function () {
|
|
|
|
|
|
|
|
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
|
|
|
|
|
2015-01-09 18:00:04 -08:00
|
|
|
afterEach(perfUtil.verifyNoBrowserErrors);
|
2014-12-22 17:50:10 -08:00
|
|
|
|
|
|
|
it('should log withBindings stats', function() {
|
2015-01-09 18:00:04 -08:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 17:50:10 -08:00
|
|
|
buttons: ['#compileWithBindings'],
|
2015-01-09 18:00:04 -08:00
|
|
|
id: 'ng2.compile.withBindings',
|
|
|
|
params: [{
|
2015-01-26 15:42:38 -08:00
|
|
|
name: 'elements', value: 150, scale: 'linear'
|
2015-01-09 18:00:04 -08:00
|
|
|
}]
|
2014-12-22 17:50:10 -08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log noBindings stats', function() {
|
2015-01-09 18:00:04 -08:00
|
|
|
perfUtil.runClickBenchmark({
|
|
|
|
url: URL,
|
2014-12-22 17:50:10 -08:00
|
|
|
buttons: ['#compileNoBindings'],
|
2015-01-09 18:00:04 -08:00
|
|
|
id: 'ng2.compile.noBindings',
|
|
|
|
params: [{
|
2015-01-26 15:42:38 -08:00
|
|
|
name: 'elements', value: 150, scale: 'linear'
|
2015-01-09 18:00:04 -08:00
|
|
|
}]
|
2014-12-22 17:50:10 -08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|