summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/test_sqlcipher.py
diff options
context:
space:
mode:
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)