blob: 24e619e6ebb80d8dd87397179e883e978e4ccdc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#![feature(test)]
extern crate clap;
extern crate test;
use clap::App;
use test::Bencher;
#[bench]
fn build_app(b: &mut Bencher) {
b.iter(|| App::new("claptests"));
}
#[bench]
fn parse_clean(b: &mut Bencher) {
b.iter(|| App::new("claptests").get_matches_from(vec![""]));
}
|