From 28a4e6fcd019f2acb81550b4551e18731268b5dc Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 23 Jun 2025 09:28:06 -0700 Subject: [PATCH] chore: autocapture performance test --- test-server/autocapture/performance-test.html | 529 ++++++++++++++++++ 1 file changed, 529 insertions(+) create mode 100644 test-server/autocapture/performance-test.html diff --git a/test-server/autocapture/performance-test.html b/test-server/autocapture/performance-test.html new file mode 100644 index 000000000..be8c6167a --- /dev/null +++ b/test-server/autocapture/performance-test.html @@ -0,0 +1,529 @@ + + + + + + + Performance Test - Deep DOM Hierarchy + + + +
+

Performance Test - Deep DOM Hierarchy

+ +
+

Test Description

+

This page creates a deeply nested DOM structure with many attributes, classes, and siblings to test the performance of the getHierarchy function. The target checkbox is nested 15 levels deep with 12 siblings at each level.

+
    +
  • DOM Depth: 15 levels deep
  • +
  • Siblings per level: 12 elements
  • +
  • Attributes per element: 5-10 attributes
  • +
  • Classes per element: 3-5 classes
  • +
  • Total DOM operations: ~1000+ operations per hierarchy calculation
  • +
+
+ +
+

Performance Metrics

+
+

Click the checkbox below to trigger the performance test...

+
+
+ +
+

Target Checkbox (Deeply Nested)

+

This checkbox is nested 15 levels deep in the DOM. Clicking it will trigger getHierarchy to process the entire ancestor chain.

+ +
+ +
+
+ +
+

Sibling Elements (Level 1)

+
+ +
+
+ +
+

Additional Sibling Elements (Level 2)

+
+ +
+
+ +
+

Control Buttons

+ + + +
+
+ + + + \ No newline at end of file