Correct benchmark comments.

This commit is contained in:
Dave Collins 2013-11-05 23:03:54 -06:00
parent 6263efcc71
commit 052c2ca8d3

View file

@ -43,7 +43,7 @@ func BenchmarkWriteVarInt9(b *testing.B) {
} }
} }
// BenchmarkReadVarInt1 performs a benchmark on how long it takes to write // BenchmarkReadVarInt1 performs a benchmark on how long it takes to read
// a single byte variable length integer. // a single byte variable length integer.
func BenchmarkReadVarInt1(b *testing.B) { func BenchmarkReadVarInt1(b *testing.B) {
buf := []byte{0x01} buf := []byte{0x01}
@ -52,7 +52,7 @@ func BenchmarkReadVarInt1(b *testing.B) {
} }
} }
// BenchmarkReadVarInt3 performs a benchmark on how long it takes to write // BenchmarkReadVarInt3 performs a benchmark on how long it takes to read
// a three byte variable length integer. // a three byte variable length integer.
func BenchmarkReadVarInt3(b *testing.B) { func BenchmarkReadVarInt3(b *testing.B) {
buf := []byte{0x0fd, 0xff, 0xff} buf := []byte{0x0fd, 0xff, 0xff}
@ -61,7 +61,7 @@ func BenchmarkReadVarInt3(b *testing.B) {
} }
} }
// BenchmarkReadVarInt5 performs a benchmark on how long it takes to write // BenchmarkReadVarInt5 performs a benchmark on how long it takes to read
// a five byte variable length integer. // a five byte variable length integer.
func BenchmarkReadVarInt5(b *testing.B) { func BenchmarkReadVarInt5(b *testing.B) {
buf := []byte{0xfe, 0xff, 0xff, 0xff, 0xff} buf := []byte{0xfe, 0xff, 0xff, 0xff, 0xff}
@ -70,7 +70,7 @@ func BenchmarkReadVarInt5(b *testing.B) {
} }
} }
// BenchmarkReadVarInt9 performs a benchmark on how long it takes to write // BenchmarkReadVarInt9 performs a benchmark on how long it takes to read
// a nine byte variable length integer. // a nine byte variable length integer.
func BenchmarkReadVarInt9(b *testing.B) { func BenchmarkReadVarInt9(b *testing.B) {
buf := []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} buf := []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}