diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-02 11:19:23 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-02 11:19:23 +0000 |
commit | 99cea0a06e6235c3e0c281a4c82df38589be2370 (patch) | |
tree | 39e0e7ed9d1ab06222af393ce0ab5ccef09eacca | |
parent | f83c37b74b2e32db349397bb45fb4b5dd22c21cf (diff) | |
download | obnam-99cea0a06e6235c3e0c281a4c82df38589be2370.tar.gz |
Store file count, size in benchmark.json
-rwxr-xr-x | obnam-benchmark | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnam-benchmark b/obnam-benchmark index c12b474a..cd4d70d0 100755 --- a/obnam-benchmark +++ b/obnam-benchmark @@ -216,6 +216,7 @@ class EmptyFilesBenchmark(ObnamBenchmark): return self.settings['empty-files-count'] def create_live_data(self, step_info): + step_info.add_info('empty-files-count', self.num_files) for i in range(self.num_files): subdir = os.path.join( self.live_data, 'dir-%d' % (i / self.files_per_dir)) @@ -240,6 +241,7 @@ class SingleLargeFileBenchmark(ObnamBenchmark): return self.settings['single-large-file-size'] def create_live_data(self, step_info): + step_info.add_info('single-large-file-size', self.file_size) filename = os.path.join(self.live_data, 'file.dat') with open(filename, 'w') as f: n = 0 |