()
| 16 | } |
| 17 | |
| 18 | fn get_files() -> Vec<TestFile> { |
| 19 | let mut files = vec![]; |
| 20 | for source_path in glob(FIXTURES_GLOB).unwrap().flatten() { |
| 21 | files.push(TestFile { |
| 22 | name: source_path.file_stem().unwrap().to_str().unwrap().to_owned(), |
| 23 | source_text: read_to_string(&source_path).unwrap(), |
| 24 | }); |
| 25 | } |
| 26 | files |
| 27 | } |
| 28 | |
| 29 | fn popular(c: &mut Criterion) { |
| 30 | let mut group = c.benchmark_group("minify_popular"); |