bevy/crates/bevy_glam/benches/vec4.rs

21 lines
391 B
Rust
Raw Normal View History

2020-05-03 23:55:17 +00:00
#[path = "support/macros.rs"]
#[macro_use]
mod macros;
mod support;
use criterion::{criterion_group, criterion_main, Criterion};
use std::ops::Mul;
use support::{random_srt_mat4, random_vec4};
bench_binop!(
vec4_mul_mat4,
"vec4 * mat4",
op => mul,
from1 => random_srt_mat4,
from2 => random_vec4
);
criterion_group!(benches, vec4_mul_mat4,);
criterion_main!(benches);