diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2023-03-08 13:27:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 05:27:14 +0000 |
commit | 7f54011429b26b49d086a0875b968365f26b57c4 (patch) | |
tree | f8212245e1b6aa5cc047453676f37f516a0f8f08 /tests/bench | |
parent | 5c1fa2429f193074a926c42e75f9ebe125bf0ae4 (diff) | |
download | pyca-cryptography-7f54011429b26b49d086a0875b968365f26b57c4.zip pyca-cryptography-7f54011429b26b49d086a0875b968365f26b57c4.tar.gz pyca-cryptography-7f54011429b26b49d086a0875b968365f26b57c4.tar.bz2 |
add EC key load benchmark (#8473)
Diffstat (limited to 'tests/bench')
-rw-r--r-- | tests/bench/test_ec_load.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bench/test_ec_load.py b/tests/bench/test_ec_load.py new file mode 100644 index 0000000..568dbd9 --- /dev/null +++ b/tests/bench/test_ec_load.py @@ -0,0 +1,13 @@ +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + +from ..hazmat.primitives.fixtures_ec import EC_KEY_SECP256R1 + + +def test_load_ec_public_numbers(benchmark): + benchmark(EC_KEY_SECP256R1.public_numbers.public_key) + + +def test_load_ec_private_numbers(benchmark): + benchmark(EC_KEY_SECP256R1.private_key) |