summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-02-16 22:13:27 +0200
committerLars Wirzenius <liw@liw.fi>2017-02-16 22:13:27 +0200
commit6faa32ba9bae8006bc73f6b22fb475d7f2706106 (patch)
tree8a84e5a7651c33bca9129bb80261e6c9d25d1a64
parente3dc1df8ba89da409fb3b813a4362bb7b74044a2 (diff)
downloadobnam-benchmarks-6faa32ba9bae8006bc73f6b22fb475d7f2706106.tar.gz
Add new benchmark simulating Maildirs
-rw-r--r--benchmark-specs/e2obbench.yaml9
-rw-r--r--obbenchlib/benchmarker.py2
2 files changed, 11 insertions, 0 deletions
diff --git a/benchmark-specs/e2obbench.yaml b/benchmark-specs/e2obbench.yaml
index c3a0734..722be57 100644
--- a/benchmark-specs/e2obbench.yaml
+++ b/benchmark-specs/e2obbench.yaml
@@ -10,6 +10,15 @@ git: /home/liw/obnam/obnam
obnam_config:
repository-format: green-albatross
benchmarks:
+ - name: maildirs
+ description: backup many files about the size of mails
+ steps:
+ - live: genbackupdata . --create=10G --file-size=5775
+ obnam: backup
+ reference: 150
+ - obnam: restore
+ reference: 150
+ - obnam: backup
- name: many_files
description: backup many small files
steps:
diff --git a/obbenchlib/benchmarker.py b/obbenchlib/benchmarker.py
index 76e4849..6cbb727 100644
--- a/obbenchlib/benchmarker.py
+++ b/obbenchlib/benchmarker.py
@@ -169,7 +169,9 @@ class Benchmarker(object):
result.set_value(
obnam_subcommand, 'profile-text', self.read_profile_text())
+ logging.log('reading log file')
log = self.read_log_file()
+ logging.log('finished reading log file')
result.set_value(obnam_subcommand, 'log', log)
result.set_value(obnam_subcommand, 'vmrss', self.find_max_vmrss(log))