fn bench_static_metrics_macro_deep(b: &mut Bencher) {
    let counter_vec = IntCounterVec::new(
        Opts::new("foo", "bar"),
        &["d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10"],
    )
    .unwrap();
    let static_counter = StaticCounter3::from(&counter_vec);
    b.iter(|| {
        static_counter
            .val1
            .val2
            .val3
            .val4
            .val5
            .val6
            .val7
            .val8
            .val9
            .val10
            .inc()
    });
}
/// macro implemented static metrics performance, with a deep nesting level.
macro implemented static metrics performance, with a deep nesting level.
macro implemented static metrics performance with a deep nesting level .
fn bench_static_metrics_macro_deep(b: &mut Bencher) {
    let counter_vec = IntCounterVec::new(
        Opts::new("foo", "bar"),
        &["d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10"],
    )
    .unwrap();
    let static_counter = StaticCounter3::from(&counter_vec);
    b.iter(|| {
        static_counter
            .val1
            .val2
            .val3
            .val4
            .val5
            .val6
            .val7
            .val8
            .val9
            .val10
            .inc()
    });
}
fn bench_static_metrics_macro_deep ( b : & mut Bencher ) { let counter_vec = IntCounterVec :: new ( Opts :: new ( " " , " " ) , & [ " " , " " , " " , " " , " " , " " , " " , " " , " " , " " ] , ) . unwrap ( ) ; let static_counter = StaticCounter3 :: from ( & counter_vec ) ; b . iter ( | | { static_counter . val1 . val2 . val3 . val4 . val5 . val6 . val7 . val8 . val9 . val10 . inc ( ) } ) ; }
macro implemented static metrics performance, with a deep nesting level.
macro implemented static metrics performance with a deep nesting level .
b
&mut Bencher
b
&mut Bencher