package l import "testing" func BenchmarkLogMsg(b *testing.B) { err := SetConfig(Config{ Path: "/tmp/dlog.log", MaxSize: 100000, Quiet: true, }) if err != nil { b.Error(err) } for i := 0; i < b.N; i++ { Info("hello logxxxxxxxlogxxxxxxxlogxxxxxxxlogxxxxxxxlogxxxxxxx") } }