1 #[path = "support/macros.rs"] 2 #[macro_use] 3 mod macros; 4 mod support; 5 6 use criterion::{criterion_group, criterion_main, Criterion}; 7 use glam::Vec4; 8 use std::ops::Mul; 9 use support::random_vec4; 10 11 bench_binop!( 12 vec4_mul_vec4, 13 "vec4 mul vec4", 14 op => mul, 15 from1 => random_vec4, 16 from2 => random_vec4 17 ); 18 19 bench_select!( 20 vec4_select, 21 "vec4 select", 22 ty => Vec4, 23 op => cmple, 24 from => random_vec4 25 ); 26 27 criterion_group!(benches, vec4_mul_vec4, vec4_select); 28 29 criterion_main!(benches); 30