2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-25 20:11:06 +00:00

Correct BenchmarkIndexSave

This commit is contained in:
Alexander Neumann 2017-01-22 09:59:19 +01:00
parent 164ba823e5
commit dc6a832cc3

View File

@ -150,7 +150,7 @@ func BenchmarkIndexSave(b *testing.B) {
for i := 0; i < 8000; i++ { for i := 0; i < 8000; i++ {
entries := make([]restic.Blob, 0, 200) entries := make([]restic.Blob, 0, 200)
for j := 0; j < len(entries); j++ { for j := 0; j < cap(entries); j++ {
entries = append(entries, restic.Blob{ entries = append(entries, restic.Blob{
ID: restic.NewRandomID(), ID: restic.NewRandomID(),
Length: 1000, Length: 1000,