Codebase list golang-github-vbauerster-mpb / b64c9e6
one more bench Vladimir Bauer 7 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2929 bar.Increment()
3030 }
3131 }
32
33 func BenchmarkIncrSingleBarWithNameAndEwmaETADecorator(b *testing.B) {
34 p := New(WithOutput(ioutil.Discard))
35 bar := p.AddBar(int64(b.N),
36 PrependDecorators(decor.Name("test")),
37 AppendDecorators(decor.EwmaETA(decor.ET_STYLE_GO, 60)),
38 )
39 for i := 0; i < b.N; i++ {
40 bar.Increment()
41 }
42 }