From 6cdfa73dd0109ca442ddd6863467da9f4a4b1485 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Tue, 14 Jan 2020 18:08:15 +0100 Subject: [PATCH] perf(ivy): add static style to the list of scenarios (#34775) PR Close #34775 --- modules/benchmarks/src/styling/ng2/index.html | 1 + modules/benchmarks/src/styling/ng2/styling.ts | 3 ++- modules/benchmarks/src/styling/styling_perf.spec.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/benchmarks/src/styling/ng2/index.html b/modules/benchmarks/src/styling/ng2/index.html index 90ef1d2fd2..0c8a87d640 100644 --- a/modules/benchmarks/src/styling/ng2/index.html +++ b/modules/benchmarks/src/styling/ng2/index.html @@ -20,6 +20,7 @@ + diff --git a/modules/benchmarks/src/styling/ng2/styling.ts b/modules/benchmarks/src/styling/ng2/styling.ts index 6b6c8241b0..e10f1d337f 100644 --- a/modules/benchmarks/src/styling/ng2/styling.ts +++ b/modules/benchmarks/src/styling/ng2/styling.ts @@ -19,9 +19,10 @@ import {BrowserModule} from '@angular/platform-browser'; +
- +
` }) diff --git a/modules/benchmarks/src/styling/styling_perf.spec.ts b/modules/benchmarks/src/styling/styling_perf.spec.ts index 7018627aac..48c4b7a21c 100644 --- a/modules/benchmarks/src/styling/styling_perf.spec.ts +++ b/modules/benchmarks/src/styling/styling_perf.spec.ts @@ -16,7 +16,8 @@ const SCENARIOS = [ {optionIndex: 2, id: 'static_class_with_interpolation'}, {optionIndex: 3, id: 'class_binding'}, {optionIndex: 4, id: 'static_class_and_class_binding'}, {optionIndex: 5, id: 'static_class_and_ngclass_binding'}, - {optionIndex: 6, id: 'static_class_and_ngstyle_binding_and_style_binding'} + {optionIndex: 6, id: 'static_class_and_ngstyle_binding_and_style_binding'}, + {optionIndex: 7, id: 'static_style'} ]; describe('styling benchmark spec', () => {