diff --git a/barbench_test.go b/barbench_test.go index c641907..d5d904c 100644 --- a/barbench_test.go +++ b/barbench_test.go @@ -30,3 +30,14 @@ bar.Increment() } } + +func BenchmarkIncrSingleBarWithNameAndEwmaETADecorator(b *testing.B) { + p := New(WithOutput(ioutil.Discard)) + bar := p.AddBar(int64(b.N), + PrependDecorators(decor.Name("test")), + AppendDecorators(decor.EwmaETA(decor.ET_STYLE_GO, 60)), + ) + for i := 0; i < b.N; i++ { + bar.Increment() + } +}