diff --git a/packages/core/test/render3/perf/README.md b/packages/core/test/render3/perf/README.md index 6fe43f71e0..561711022a 100644 --- a/packages/core/test/render3/perf/README.md +++ b/packages/core/test/render3/perf/README.md @@ -78,3 +78,7 @@ To profile, append `_profile` to the target name and attach a debugger via chrom - `yarn bazel run --config=ivy //packages/core/test/render3/perf:noop_change_detection_profile` To interactively edit/rerun benchmarks use `ibazel` instead of `bazel`. + +To debug +- `yarn bazel build --config=ivy //packages/core/test/render3/perf:noop_change_detection` +- `node --inspect-brk bazel-out/darwin-fastbuild/bin/packages/core/test/render3/perf/noop_change_detection.min_debug.es2015.js` \ No newline at end of file diff --git a/packages/core/test/render3/perf/class_binding/index.ts b/packages/core/test/render3/perf/class_binding/index.ts index af0ff662ed..3085bd3ee4 100644 --- a/packages/core/test/render3/perf/class_binding/index.ts +++ b/packages/core/test/render3/perf/class_binding/index.ts @@ -26,8 +26,8 @@ const benchmarks: Benchmark[] = []; function benchmark( name: string, template: ComponentTemplate, baselineTemplate: ComponentTemplate) { - const ivyHarness = setupTestHarness(template, 1, 1, 1000, context, consts); - const baseHarness = setupTestHarness(baselineTemplate, 1, 1, 1000, context, consts); + const ivyHarness = setupTestHarness(template, 1, 4, 1000, context, consts); + const baseHarness = setupTestHarness(baselineTemplate, 1, 4, 1000, context, consts); if (PROFILE_CREATE) { const benchmark = createBenchmark('class binding[create]: ' + name); diff --git a/packages/core/test/render3/perf/duplicate_map_based_style_and_class_bindings/index.ts b/packages/core/test/render3/perf/duplicate_map_based_style_and_class_bindings/index.ts index db41dfae9f..efc2a60d58 100644 --- a/packages/core/test/render3/perf/duplicate_map_based_style_and_class_bindings/index.ts +++ b/packages/core/test/render3/perf/duplicate_map_based_style_and_class_bindings/index.ts @@ -149,7 +149,7 @@ function dirThatSetsFooClassesHostBindings(rf: RenderFlags, ctx: any) { } const rootLView = setupRootViewWithEmbeddedViews( - testTemplate, 11, 10, 1000, null, + testTemplate, 11, 40, 1000, null, [ ['dir-that-sets-width', '', 'dir-that-sets-foo-class', ''], ], diff --git a/packages/core/test/render3/perf/map_based_style_and_class_bindings/index.ts b/packages/core/test/render3/perf/map_based_style_and_class_bindings/index.ts index f8f74bb2f8..5ef13e8f14 100644 --- a/packages/core/test/render3/perf/map_based_style_and_class_bindings/index.ts +++ b/packages/core/test/render3/perf/map_based_style_and_class_bindings/index.ts @@ -78,7 +78,7 @@ function testTemplate(rf: RenderFlags, ctx: any) { } -const rootLView = setupRootViewWithEmbeddedViews(testTemplate, 11, 10, 1000); +const rootLView = setupRootViewWithEmbeddedViews(testTemplate, 11, 40, 1000); const rootTView = rootLView[TVIEW]; // scenario to benchmark