From 36d972448f93cf62dbf02ec18e53ad3b8a77a4ee Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 18 Dec 2011 12:38:03 +0000 Subject: benchmark verify as well --- seivot | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/seivot b/seivot index 6f53a9b..f2097f5 100755 --- a/seivot +++ b/seivot @@ -106,6 +106,9 @@ class BackupProgram(object): def fsck(self, nth_gen): '''Run fsck on the repository, after the nth backup generation.''' + + def verify(self, nth_gen): + '''Run verify on the repository, after the nth backup generation.''' def list_files(self, nth_gen): '''This should retrieve a list of all files in a generation. @@ -214,6 +217,9 @@ class Obnam(BackupProgram): def fsck(self, nth_gen): return self._run(['fsck'], nth_gen)[0] + + def verify(self, nth_gen): + return self._run(['verify', self.live_data], nth_gen)[0] def _genid(self, nth_gen): timings, out = self._run(['genids'], nth_gen, stdout=subprocess.PIPE) @@ -430,6 +436,7 @@ class Seivot(cliapp.Application): self.summain(self.live_data, 'backup-0.summain') self.measure(prog.backup, 0, amount) self.measure(prog.fsck, 0, amount) + self.measure(prog.verify, 0, amount) for i in range(1, generations): self.generate_live_data(self.live_data, @@ -438,6 +445,7 @@ class Seivot(cliapp.Application): self.summain(self.live_data, 'backup-%d.summain' % i) self.measure(prog.backup, i, self.settings['incremental-data']) self.measure(prog.fsck, i, self.settings['incremental-data']) + self.measure(prog.verify, i, self.settings['incremental-data']) for i in range(generations): self.measure(prog.list_files, i, 0) -- cgit v1.2.1