summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-02 18:44:19 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-02 18:44:19 +0100
commit7895b713d9a38e10a4ca8391937d775bb5d0c92f (patch)
treec1c3e61d3fd5660295b6d142ab3e01c70063efac
parent5c568a00b33d3ada32dcf3ee844a8c10d987e7cc (diff)
downloadobnam-7895b713d9a38e10a4ca8391937d775bb5d0c92f.tar.gz
Mark benchmarks done with --use-existing (in the profile name).
-rwxr-xr-xobnam-benchmark8
1 files changed, 7 insertions, 1 deletions
diff --git a/obnam-benchmark b/obnam-benchmark
index 694e81f1..e1715d3e 100755
--- a/obnam-benchmark
+++ b/obnam-benchmark
@@ -160,7 +160,13 @@ class ObnamBenchmark(cliapp.Application):
sizes = self.settings['size'] or self.default_sizes
logging.debug('sizes: %s' % repr(sizes))
- for profile, file_size in sorted(self.profiles.iteritems()):
+ if self.settings['use-existing']:
+ profiles = sorted(('existing+%s' % name, size)
+ for name, size in self.profiles.iteritems())
+ else:
+ profiles = sorted(self.profiles.iteritems())
+
+ for profile, file_size in profiles:
for pair in sizes:
initial, inc = self.parse_size_pair(pair)