debian/rust-vendor/fluent-syntax/benches/parser_iai.rs
raw| 1 | use fluent_syntax::parser::parse_runtime; |
| 2 | |
| 3 | fn iai_parse_ctx_runtime() { |
| 4 | let files = &[ |
| 5 | include_str!("contexts/browser/appmenu.ftl"), |
| 6 | include_str!("contexts/browser/browser.ftl"), |
| 7 | include_str!("contexts/browser/menubar.ftl"), |
| 8 | include_str!("contexts/preferences/preferences.ftl"), |
| 9 | ]; |
| 10 | for source in files { |
| 11 | parse_runtime(*source).expect("Parsing of the FTL failed."); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | iai::main!(iai_parse_ctx_runtime); |