angular-cn/modules/benchmarks/test/perf/element_injector_perf.js

27 lines
724 B
JavaScript
Raw Normal View History

"use strict";
var util = require('../../../../tools/perf/util.js');
describe('ng2 element injector benchmark', function () {
var URL = 'benchmarks/web/element_injector/element_injector_benchmark.html';
afterEach(util.verifyNoErrors);
it('should log the stats for instantiate', function() {
browser.get(URL);
util.runClickBenchmark({
buttons: ['#instantiate'],
name: browser.params.lang+'.ng2.elementInjector.instantiate'
});
});
it('should log the stats for instantiateDirectives', function() {
browser.get(URL);
util.runClickBenchmark({
buttons: ['#instantiateDirectives'],
name: browser.params.lang+'.ng2.elementInjector.instantiateDirectives'
});
});
});