#![recursion_limit="256"] //Fix Recursion limitation //!Parsing XML, and retrieving specific text or attribute. //! //!* **Baseline**: Simple XML with just one tag, no attributes. //!* **Attributes**: 1 tag with 1000 attributes. //!* **Serial**: 1000 tags, opening and closing, opening and closing. No nesting. //!* **Nested**: 1000 nested entries, each inside of the other. #[macro_use] extern crate bencher; static BASELINE: &str = r"test"; static ATTRIBUTE: &str = r#""#; static SERIAL: &str = r#"test"#; static NESTED: &str = r#"test"#; mod _quick_xml; mod _dummy_xml; mod _roxmltree; mod _treexml; mod _xmltree; benchmark_group!(baseline, _quick_xml::baseline, _dummy_xml::baseline, _roxmltree::baseline, _treexml::baseline, _xmltree::baseline); benchmark_group!(attribute, _quick_xml::attribute, _dummy_xml::attribute, _roxmltree::attribute, _treexml::attribute, _xmltree::attribute); benchmark_group!(serial, _quick_xml::serial, _dummy_xml::serial, _roxmltree::serial, _treexml::serial, _xmltree::serial); benchmark_group!(nested, _quick_xml::nested, _dummy_xml::nested, _roxmltree::nested, _treexml::nested); benchmark_main!(baseline, attribute, serial, nested);