MCPcopy Create free account
hub / github.com/DNAProject/DNA / BenchmarkBytesXReader

Function BenchmarkBytesXReader

common/serialization/serialize_test.go:208–215  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

206const N = 24829*1 + 1
207
208func BenchmarkBytesXReader(b *testing.B) {
209 bs := make([]byte, N)
210 rand.Read(bs)
211 for i := 0; i < b.N; i++ {
212 buff := bytes.NewBuffer(bs)
213 byteXReader(buff, uint64(len(bs)))
214 }
215}

Callers

nothing calls this directly

Calls 1

byteXReaderFunction · 0.85

Tested by

no test coverage detected