mirror of
https://github.com/restic/restic.git
synced 2026-10-14 05:57:12 +00:00
Correct BenchmarkIndexSave
This commit is contained in:
1 parent
164ba823e5
commit
dc6a832cc3
1 file changed
+1
-1
@@ -150,7 +150,7 @@ func BenchmarkIndexSave(b *testing.B) {
|
||||
|
||||
for i := 0; i < 8000; i++ {
|
||||
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{
|
||||
ID: restic.NewRandomID(),
|
||||
Length: 1000,
|
||||
|
||||
Reference in new issue
Block a user