diff --git a/README.md b/README.md index 295f4c5..16f279a 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,11 @@ let audit = accessibility_rs::audit(&AuditConfig::new(&html, &css, false, "en")) ```sh audit-speed/core/audit: small html (4k iterations) -time: [66.025 µs 66.151 µs 66.270 µs] +time: [60.988 µs 61.067 µs 61.157 µs] audit-speed/core/audit: medium html (4k iterations) -time: [928.16 µs 931.17 µs 933.96 µs] +time: [890.56 µs 905.52 µs 923.23 µs] audit-speed/core/audit: large html (4k iterations) -time: [1.1475 ms 1.1507 ms 1.1531 ms] +time: [1.1316 ms 1.1101 ms 1.1478 ms] ``` ## Examples diff --git a/accessibility-rs/src/engine/audit/tree.rs b/accessibility-rs/src/engine/audit/tree.rs index 633933a..bdf481d 100644 --- a/accessibility-rs/src/engine/audit/tree.rs +++ b/accessibility-rs/src/engine/audit/tree.rs @@ -132,14 +132,14 @@ pub fn parse_accessibility_tree_bounded<'a, 'b, 'c>( ) .unwrap(); - println!("Layout leafs {:?}", layout_leafs.len()); + // println!("Layout leafs {:?}", layout_leafs.len()); // TODO: set the root node to html, body in the accessibility_tree taffy.compute_layout(root_node, Size::MAX_CONTENT).unwrap(); - for lea in layout_leafs { - println!("Leaf Position {:?}", taffy.layout(lea).unwrap()); - } + // for lea in layout_leafs { + // println!("Leaf Position {:?}", taffy.layout(lea).unwrap()); + // } // console_log!("Getting tree links {:?}", accessibility_tree.get("a")); // console_log!("Tree {:?}", accessibility_tree);