(b *testing.B)
| 48 | } |
| 49 | |
| 50 | func BenchmarkWriteVarString(b *testing.B) { |
| 51 | s := "jim" |
| 52 | buf := new(bytes.Buffer) |
| 53 | for i := 0; i < b.N; i++ { |
| 54 | WriteString(buf, s) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func BenchmarkReadVarUint(b *testing.B) { |
| 59 | data := []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} |
nothing calls this directly
no test coverage detected