fn bench_static_metrics_macro(b: &mut Bencher) {
    let counter_vec = IntCounterVec::new(Opts::new("foo", "bar"), &["d1", "d2"]).unwrap();
    let static_counter = StaticCounter2::from(&counter_vec);
    b.iter(|| static_counter.foo.bar.inc());
}
/// macro implemented static metrics performance.
macro implemented static metrics performance.
macro implemented static metrics performance .
fn bench_static_metrics_macro(b: &mut Bencher) {
    let counter_vec = IntCounterVec::new(Opts::new("foo", "bar"), &["d1", "d2"]).unwrap();
    let static_counter = StaticCounter2::from(&counter_vec);
    b.iter(|| static_counter.foo.bar.inc());
}
fn bench_static_metrics_macro ( b : & mut Bencher ) { let counter_vec = IntCounterVec :: new ( Opts :: new ( " " , " " ) , & [ " " , " " ] ) . unwrap ( ) ; let static_counter = StaticCounter2 :: from ( & counter_vec ) ; b . iter ( | | static_counter . foo . bar . inc ( ) ) ; }
macro implemented static metrics performance.
macro implemented static metrics performance .
b
&mut Bencher
b
&mut Bencher