use rexl::time::*;
#[ignore]
#[test]
fn test_time_it() {
let ts = Timeit::new()
.add_unary_action(
|| 1,
|_| {
let _ = vec![0; 100_000]; },
)
.add_action(|| {
let _: Vec<i32> = Vec::with_capacity(100_000);
})
.add_action(|| {
for _ in 0..100_000 {}
})
.add_unary_action(
|| 1,
|_| {
let _ = vec![1; 100_000];
},
)
.add_unary_action(
|| 1,
|_| {
let _ = vec![0u64; 100_000];
},
)
.repeat(10)
.count(20)
.skip(5)
.run_and_format_us("\t");
println!("{}", ts);
}