blob: 9f35dc7804927b14640279132b0ea94296681d2e [file] [log] [blame] [edit]
package sshfx
import (
"testing"
)
func BenchmarkAppendCount(b *testing.B) {
buf := NewBuffer(make([]byte, 0, b.N*4))
for i := range b.N {
buf.AppendCount(i)
}
}
func BenchmarkAppendString(b *testing.B) {
buf := NewBuffer(make([]byte, 0, b.N*(4+3)))
for range b.N {
buf.AppendString("foo")
}
}