gitlab.com/AgentNemo/progressbar@v0.0.0-20210502155443-775a5942a812/benchmark_test.go (about) 1 package main 2 3 import ( 4 "gitlab.com/AgentNemo/progressbar/spb" 5 "testing" 6 ) 7 8 func Benchmark(b *testing.B) { 9 pb := spb.New(100, spb.Showcase2) 10 for i := 0; i < 100; i++ { 11 pb.Advance(1) 12 } 13 pb.Finish() 14 }