- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkIoPipeReader (0.26 sec)
-
internal/ringbuffer/ring_buffer_benchmark_test.go
buf := make([]byte, sz) go func() { for { rb.Write(data) } }() b.ResetTimer() for i := 0; i < b.N; i++ { rb.Read(buf) } } func BenchmarkIoPipeReader(b *testing.B) { pr, pw := io.Pipe() data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) go func() { for { pw.Write(data) } }() b.ResetTimer()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0)