diff options
Diffstat (limited to 'libgo/go/log/log_test.go')
-rw-r--r-- | libgo/go/log/log_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/go/log/log_test.go b/libgo/go/log/log_test.go index dd16c9d..966fdf3 100644 --- a/libgo/go/log/log_test.go +++ b/libgo/go/log/log_test.go @@ -182,3 +182,13 @@ func BenchmarkPrintln(b *testing.B) { l.Println(testString) } } + +func BenchmarkPrintlnNoFlags(b *testing.B) { + const testString = "test" + var buf bytes.Buffer + l := New(&buf, "", 0) + for i := 0; i < b.N; i++ { + buf.Reset() + l.Println(testString) + } +} |