From 9c1d8c8c9d3f3f77ac1a57f6c7f8257015855415 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Sun, 22 Oct 2023 21:10:14 -0400 Subject: [PATCH] chore(docs): update benchmarks --- README.md | 6 +++--- accessibility-rs/src/engine/audit/tree.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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);