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

Function BenchmarkReadVarBytes

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

Source from the content-addressed store, hash-verified

64}
65
66func BenchmarkReadVarBytes(b *testing.B) {
67 data := []byte{10, 11, 12}
68 for i := 0; i < b.N; i++ {
69 r := bytes.NewReader(data)
70 ReadVarBytes(r)
71 }
72}
73
74func BenchmarkReadVarString(b *testing.B) {
75 data := []byte{10, 11, 12}

Callers

nothing calls this directly

Calls 1

ReadVarBytesFunction · 0.85

Tested by

no test coverage detected