diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-02 18:44:19 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-02 18:44:19 +0100 |
commit | 7895b713d9a38e10a4ca8391937d775bb5d0c92f (patch) | |
tree | c1c3e61d3fd5660295b6d142ab3e01c70063efac | |
parent | 5c568a00b33d3ada32dcf3ee844a8c10d987e7cc (diff) | |
download | obnam-7895b713d9a38e10a4ca8391937d775bb5d0c92f.tar.gz |
Mark benchmarks done with --use-existing (in the profile name).
-rwxr-xr-x | obnam-benchmark | 8 |
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) |