From 49484d93ba4183af460e592bb163153a92ba8571 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 17 Jul 2017 20:37:19 -0300 Subject: [benchmarks] add docstrings for benchmarks --- testing/tests/benchmarks/test_sqlcipher.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testing/tests/benchmarks/test_sqlcipher.py') 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) -- cgit v1.2.3