diff options
author | drebs <drebs@leap.se> | 2017-04-27 10:01:55 +0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-27 10:04:30 +0200 |
commit | 336211e2526c71c34a82c4ec48ef32f8bb82fd1f (patch) | |
tree | 6e6db6c40a150ca5de8f90af37cf89c9924eea6e /testing/tests/benchmarks/test_crypto.py | |
parent | aa9a13549eb30efa1f0528257e40fd67ebdfbee9 (diff) |
[test] monitor cpu/mem for all benchmarks
Diffstat (limited to 'testing/tests/benchmarks/test_crypto.py')
-rw-r--r-- | testing/tests/benchmarks/test_crypto.py | 8 |
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 |