fix bug in text benchmark

This commit is contained in:
faiface 2017-07-02 23:26:26 +02:00
parent e41c8b585b
commit 96f9ed3622
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func BenchmarkTextWrite(b *testing.B) {
chunks := make([][]byte, len(lengths)) chunks := make([][]byte, len(lengths))
for i := range chunks { for i := range chunks {
chunk := make([]rune, lengths[i]) chunk := make([]rune, lengths[i])
for j := range chunks[i] { for j := range chunk {
chunk[j] = runeSet[rand.Intn(len(runeSet))] chunk[j] = runeSet[rand.Intn(len(runeSet))]
} }
chunks[i] = []byte(string(chunk)) chunks[i] = []byte(string(chunk))