mirror of
https://github.com/restic/restic.git
synced 2026-12-04 15:44:46 +00:00
data: keep node names sorted in BenchmarkBuildTree
This commit is contained in:
1 parent
12073885f7
commit
33b2785d90
1 file changed
+1
-1
@@ -245,7 +245,7 @@ func BenchmarkBuildTree(b *testing.B) {
|
||||
nodes := make([]data.Node, size)
|
||||
for i := range nodes {
|
||||
// Archiver.SaveTree inputs in sorted order, so do that here too.
|
||||
nodes[i].Name = strconv.Itoa(i)
|
||||
nodes[i].Name = fmt.Sprintf("%03d", i)
|
||||
}
|
||||
|
||||
b.ResetTimer()
|
||||
|
||||
Reference in new issue
Block a user