clap/benches/01_default.rs

19 lines
286 B
Rust
Raw Normal View History

2015-09-01 16:00:51 +00:00
#![feature(test)]
extern crate clap;
extern crate test;
use clap::App;
use test::Bencher;
#[bench]
2020-01-31 09:13:44 +00:00
fn build_app(b: &mut Bencher) {
b.iter(|| App::new("claptests"));
}
2015-09-01 16:00:51 +00:00
#[bench]
2020-01-31 09:13:44 +00:00
fn parse_clean(b: &mut Bencher) {
b.iter(|| App::new("claptests").get_matches_from(vec![""]));
}