Add horizontal movement benchmark tests

pull/3/head
Arijit Basu 3 years ago
parent 096489dee4
commit 203ed7ed25
No known key found for this signature in database
GPG Key ID: 7D7BF809E7378863

@ -28,6 +28,15 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("focus last item", |b| {
b.iter(|| app.clone().handle(&config::Action::FocusLast))
});
c.bench_function("leave and enter directory", |b| {
b.iter(|| {
app.clone()
.handle(&config::Action::Back)
.unwrap()
.handle(&config::Action::Enter)
})
});
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);

Loading…
Cancel
Save