clap/benches/01_default.rs
2018-01-25 12:21:17 -05:00

14 lines
278 B
Rust

#![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![""])); }