summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/test_crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/benchmarks/test_crypto.py')
-rw-r--r--testing/tests/benchmarks/test_crypto.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/tests/benchmarks/test_crypto.py b/testing/tests/benchmarks/test_crypto.py
index 8ee9b899..a53e1783 100644
--- a/testing/tests/benchmarks/test_crypto.py
+++ b/testing/tests/benchmarks/test_crypto.py
@@ -56,18 +56,18 @@ def create_doc_decryption(size):
def create_raw_encryption(size):
@pytest.mark.benchmark(group="test_crypto_raw_encrypt")
- def test_raw_encrypt(benchmark, payload):
+ def test_raw_encrypt(monitored_benchmark, payload):
key = payload(32)
- benchmark(_crypto.encrypt_sym, payload(size), key)
+ monitored_benchmark(_crypto.encrypt_sym, payload(size), key)
return test_raw_encrypt
def create_raw_decryption(size):
@pytest.mark.benchmark(group="test_crypto_raw_decrypt")
- def test_raw_decrypt(benchmark, payload):
+ def test_raw_decrypt(monitored_benchmark, payload):
key = payload(32)
iv, ciphertext = _crypto.encrypt_sym(payload(size), key)
- benchmark(_crypto.decrypt_sym, ciphertext, key, iv)
+ monitored_benchmark(_crypto.decrypt_sym, ciphertext, key, iv)
return test_raw_decrypt