refactor(perf): move navigation into test files and rename runSimpleBenchmark
This commit is contained in:
@@ -8,16 +8,16 @@ describe('ng2 change detection benchmark', function () {
|
||||
afterEach(util.verifyNoErrors);
|
||||
|
||||
it('should log ng stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#ng2DetectChanges'],
|
||||
name: browser.params.lang+'.ng2.changeDetection'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log baseline stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#baselineDetectChanges'],
|
||||
name: browser.params.lang+'.baseline.changeDetection'
|
||||
});
|
||||
|
||||
@@ -8,16 +8,16 @@ describe('ng2 compiler benchmark', function () {
|
||||
afterEach(util.verifyNoErrors);
|
||||
|
||||
it('should log withBindings stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#compileWithBindings'],
|
||||
name: browser.params.lang+'.ng2.compile.withBindings'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log noBindings stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#compileNoBindings'],
|
||||
name: browser.params.lang+'.ng2.compile.noBindings'
|
||||
});
|
||||
|
||||
@@ -8,32 +8,32 @@ describe('ng2 di benchmark', function () {
|
||||
afterEach(util.verifyNoErrors);
|
||||
|
||||
it('should log the stats for getByToken', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#getByToken'],
|
||||
name: browser.params.lang+'.ng2.di.getByToken'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log the stats for getByKey', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#getByKey'],
|
||||
name: browser.params.lang+'.ng2.di.getByKey'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log the stats for getChild', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#getChild'],
|
||||
name: browser.params.lang+'.ng2.di.getChild'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log the stats for instantiate', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#instantiate'],
|
||||
name: browser.params.lang+'.ng2.di.instantiate'
|
||||
});
|
||||
|
||||
@@ -8,16 +8,16 @@ describe('ng2 element injector benchmark', function () {
|
||||
afterEach(util.verifyNoErrors);
|
||||
|
||||
it('should log the stats for instantiate', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#instantiate'],
|
||||
name: browser.params.lang+'.ng2.elementInjector.instantiate'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log the stats for instantiateDirectives', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#instantiateDirectives'],
|
||||
name: browser.params.lang+'.ng2.elementInjector.instantiateDirectives'
|
||||
});
|
||||
|
||||
@@ -8,16 +8,16 @@ describe('ng2 tree benchmark', function () {
|
||||
afterEach(util.verifyNoErrors);
|
||||
|
||||
it('should log the ng stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#ng2DestroyDom', '#ng2CreateDom'],
|
||||
name: browser.params.lang+'.ng2.tree'
|
||||
});
|
||||
});
|
||||
|
||||
it('should log the baseline stats', function() {
|
||||
util.runSimpleBenchmark({
|
||||
url: URL,
|
||||
browser.get(URL);
|
||||
util.runClickBenchmark({
|
||||
buttons: ['#baselineDestroyDom', '#baselineCreateDom'],
|
||||
name: browser.params.lang+'.baseline.tree'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user