summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/test_sync.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_sync.py
parent465737c82439fd4fa32c4a89c5e84b1bca7fc4d7 (diff)
[benchmarks] add docstrings for benchmarks
Diffstat (limited to 'testing/tests/benchmarks/test_sync.py')
-rw-r--r--testing/tests/benchmarks/test_sync.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/tests/benchmarks/test_sync.py b/testing/tests/benchmarks/test_sync.py
index 4a275040..45506d77 100644
--- a/testing/tests/benchmarks/test_sync.py
+++ b/testing/tests/benchmarks/test_sync.py
@@ -21,6 +21,9 @@ def create_upload(uploads, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark(group="test_upload")
def test(soledad_client, txbenchmark_with_setup, payload):
+ """
+ Upload many documents of a given size.
+ """
client = soledad_client()
def setup():
@@ -49,6 +52,9 @@ def create_download(downloads, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark(group="test_download")
def test(soledad_client, txbenchmark_with_setup, payload):
+ """
+ Download many documents of the same size.
+ """
client = soledad_client()
yield load_up(client, downloads, payload(size))
@@ -75,6 +81,9 @@ test_download_1000_10k = create_download(1000, 10 * 1000)
@pytest.inlineCallbacks
@pytest.mark.benchmark(group="test_nothing_to_sync")
def test_nothing_to_sync(soledad_client, txbenchmark_with_setup):
+ """
+ Sync two replicas that are already in sync.
+ """
def setup():
return soledad_client()