### Executing Performance Comparison Script (Bash) Source: https://github.com/fefit/visdom/blob/main/performance/README.md This bash command executes the `run.sh` script, which is responsible for running the performance comparison tests between different HTML parsing libraries. It includes a cautionary note about the potential duration of tests involving Node.js with cheeriojs. ```bash # run the comparison # becareful some cases run in nodejs with cheeriojs may take long time sh run.sh ``` -------------------------------- ### Loading HTML and Extracting Text in Rust Source: https://github.com/fefit/visdom/blob/main/README.md This snippet demonstrates the basic usage of the `visdom` crate in Rust. It shows how to load an HTML string into a `Vis` object, use the `find` method with a CSS selector (`#header li`) to select specific elements, and then retrieve the combined text content of these elements using the `text` method. The result is printed to the console. ```rust use visdom::Vis; use visdom::types::BoxDynError; fn main() -> Result<(), BoxDynError>{ let html = r##" "##; // load html let root = Vis::load(html)?; let lis = root.find("#header li"); let lis_text = lis.text(); println!("{}", lis_text); // will output "Hello,VisDom" Ok(()) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.