fix bug in text benchmark
This commit is contained in:
parent
e41c8b585b
commit
96f9ed3622
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue