clap 3.0.0-rc.13

A simple to use, efficient, and full-featured Command Line Argument Parser
Documentation
use clap::App;
use criterion::{criterion_group, criterion_main, Criterion};

pub fn build_empty(c: &mut Criterion) {
    c.bench_function("build_empty", |b| b.iter(|| App::new("claptests")));
}

pub fn parse_empty(c: &mut Criterion) {
    c.bench_function("parse_empty", |b| {
        b.iter(|| App::new("claptests").get_matches_from(vec![""]))
    });
}

criterion_group!(benches, build_empty, parse_empty);
criterion_main!(benches);