mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
archiver: correct benchmark
This commit is contained in:
parent
0662c14fee
commit
d753a5ffa3
@ -142,8 +142,10 @@ func BenchmarkArchiveDirectory(b *testing.B) {
|
|||||||
b.Skip("benchdir not set, skipping BenchmarkArchiveDirectory")
|
b.Skip("benchdir not set, skipping BenchmarkArchiveDirectory")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for i := 0; i < b.N; i++ {
|
||||||
archiveDirectory(b)
|
archiveDirectory(b)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func archiveWithDedup(t testing.TB) {
|
func archiveWithDedup(t testing.TB) {
|
||||||
if *benchArchiveDirectory == "" {
|
if *benchArchiveDirectory == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user