2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

archiver: correct benchmark

This commit is contained in:
Alexander Neumann 2015-05-01 22:58:50 +02:00
parent 0662c14fee
commit d753a5ffa3

View File

@ -142,7 +142,9 @@ func BenchmarkArchiveDirectory(b *testing.B) {
b.Skip("benchdir not set, skipping BenchmarkArchiveDirectory") b.Skip("benchdir not set, skipping BenchmarkArchiveDirectory")
} }
archiveDirectory(b) for i := 0; i < b.N; i++ {
archiveDirectory(b)
}
} }
func archiveWithDedup(t testing.TB) { func archiveWithDedup(t testing.TB) {