- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkWriterEmpty (0.18 sec)
-
src/bufio/bufio_test.go
n, err := io.Copy(io.Discard, br) if err != nil { b.Fatal(err) } if n != int64(len(str)) { b.Fatal("wrong length") } } } func BenchmarkWriterEmpty(b *testing.B) { b.ReportAllocs() str := strings.Repeat("x", 1<<10) bs := []byte(str) for i := 0; i < b.N; i++ { bw := NewWriter(io.Discard) bw.Flush() bw.WriteByte('a')
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Mon Oct 28 21:04:51 UTC 2024 - 51.6K bytes - Viewed (0)