angular/modules/benchmarks/src/hydration
Andrew Kushnir 7981aad30e test(core): add benchmark for hydration runtime logic (#52206)
This commit adds a benchmark for hydration runtime logic, which contains 2 parts: a baseline (create DOM nodes from scratch) and a main scenario (DOM matching instead of re-creating nodes).

PR Close #52206
2023-10-18 12:07:12 -07:00
..
baseline test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
main test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
BUILD.bazel test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
hydration.e2e-spec.ts test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
hydration.perf-spec.ts test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
init.ts test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
README.md test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
table.ts test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00
util.ts test(core): add benchmark for hydration runtime logic (#52206) 2023-10-18 12:07:12 -07:00

Hydration benchmark

This folder contains hydration benchmark that tests the process of matching DOM nodes at runtime.

There are 2 folders in this benchmark:

  • baseline - renders a component without hydration, we use it as a baseline
  • main - the same code as the baseline, but Angular uses hydration and matches existing DOM nodes instead of creating new ones

The benchmarks are based on largetable benchmarks.