summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/test_sqlcipher.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-17 20:37:19 -0300
committerdrebs <drebs@leap.se>2017-07-18 13:51:09 -0300
commit49484d93ba4183af460e592bb163153a92ba8571 (patch)
tree8987a6fbe513f249f078b09afbc6964660639a97 /testing/tests/benchmarks/test_sqlcipher.py
parent465737c82439fd4fa32c4a89c5e84b1bca7fc4d7 (diff)
[benchmarks] add docstrings for benchmarks
Diffstat (limited to 'testing/tests/benchmarks/test_sqlcipher.py')
-rw-r--r--testing/tests/benchmarks/test_sqlcipher.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/tests/benchmarks/test_sqlcipher.py b/testing/tests/benchmarks/test_sqlcipher.py
index 9dd21bea..9108084c 100644
--- a/testing/tests/benchmarks/test_sqlcipher.py
+++ b/testing/tests/benchmarks/test_sqlcipher.py
@@ -16,6 +16,9 @@ def build_test_sqlcipher_async_create(amount, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark(group="test_sqlcipher_async_create")
def test(soledad_client, txbenchmark_with_setup, payload):
+ """
+ Create many documents of a given size concurrently.
+ """
client = soledad_client()
yield txbenchmark_with_setup(
lambda: None, load_up, client, amount, payload(size))
@@ -26,6 +29,9 @@ def build_test_sqlcipher_create(amount, size):
@pytest.mark.skip(reason="this test is lengthy and not a real use case")
@pytest.mark.benchmark(group="test_sqlcipher_create")
def test(soledad_client, monitored_benchmark, payload):
+ """
+ Create many documents of a given size serially.
+ """
client = soledad_client()._dbsyncer
monitored_benchmark(
load_up, client, amount, payload(size), defer=False)