summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/test_sqlcipher.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-04-27 10:01:55 +0200
committerdrebs <drebs@leap.se>2017-04-27 10:04:30 +0200
commit336211e2526c71c34a82c4ec48ef32f8bb82fd1f (patch)
tree6e6db6c40a150ca5de8f90af37cf89c9924eea6e /testing/tests/benchmarks/test_sqlcipher.py
parentaa9a13549eb30efa1f0528257e40fd67ebdfbee9 (diff)
[test] monitor cpu/mem for all benchmarks
Diffstat (limited to 'testing/tests/benchmarks/test_sqlcipher.py')
-rw-r--r--testing/tests/benchmarks/test_sqlcipher.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/tests/benchmarks/test_sqlcipher.py b/testing/tests/benchmarks/test_sqlcipher.py
index 0cdda7e6..d300d931 100644
--- a/testing/tests/benchmarks/test_sqlcipher.py
+++ b/testing/tests/benchmarks/test_sqlcipher.py
@@ -24,9 +24,10 @@ def build_test_sqlcipher_async_create(amount, size):
def build_test_sqlcipher_create(amount, size):
@pytest.mark.synchronous
@pytest.mark.benchmark(group="test_sqlcipher_create")
- def test(soledad_client, benchmark, payload):
+ def test(soledad_client, monitored_benchmark, payload):
client = soledad_client()._dbsyncer
- benchmark(load_up, client, amount, payload(size), defer=False)
+ monitored_benchmark(
+ load_up, client, amount, payload(size), defer=False)
return test