Skip to content

Commit

Permalink
chore(docs): update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Oct 23, 2023
1 parent 8482953 commit 9c1d8c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions accessibility-rs/src/engine/audit/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9c1d8c8

Please sign in to comment.