Skip to content
Snippets Groups Projects
Verified Commit e8ae4d59 authored by drebs's avatar drebs
Browse files

[benchmarks] limit number of runs of sqlcipher benchmark tests

As sqlcipher benchmark tests take longer, we want to limit the number of
repetitions. Previous to this change, these tests were being calibrated
automatically and would run 5 times becuase it is the default minimum
number of times for pytest-benchmark. By changing the runner to pedantic
mode, now they will be run 4 times, the same number of times as
benchmark sync tests.
parent bd10a5c1
No related branches found
No related tags found
1 merge request!1198885 - Limit number of runs of sqlcipher benchmark tests and update documentation
......@@ -15,9 +15,10 @@ def load_up(client, amount, payload, defer=True):
def build_test_sqlcipher_async_create(amount, size):
@pytest.inlineCallbacks
@pytest.mark.benchmark(group="test_sqlcipher_async_create")
def test(soledad_client, txbenchmark, payload):
def test(soledad_client, txbenchmark_with_setup, payload):
client = soledad_client()
yield txbenchmark(load_up, client, amount, payload(size))
yield txbenchmark_with_setup(
lambda: None, load_up, client, amount, payload(size))
return test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment