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

Function BenchmarkReadVarString

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

Source from the content-addressed store, hash-verified

72}
73
74func BenchmarkReadVarString(b *testing.B) {
75 data := []byte{10, 11, 12}
76 for i := 0; i < b.N; i++ {
77 r := bytes.NewReader(data)
78 ReadString(r)
79 }
80}
81
82func BenchmarkSerialize(ben *testing.B) {
83 a3 := uint8(100)

Callers

nothing calls this directly

Calls 1

ReadStringFunction · 0.85

Tested by

no test coverage detected