From 5c8a199ea09a4df3e07c9fa838c76d23c2d93e11 Mon Sep 17 00:00:00 2001 From: Petr Gotthard Date: Tue, 5 Dec 2023 12:25:42 +0100 Subject: [PATCH] tests: test performance testing --- Makefile.am | 1 + test/speed.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 test/speed.sh diff --git a/Makefile.am b/Makefile.am index 160d84e..e48ad39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,6 +79,7 @@ test_rsa_genpkey_decrypt_LDFLAGS = $(COMMON_LDFLAGS) TESTS = $(TESTS_SHELL) $(check_PROGRAMS) TESTS_SHELL = test/list.sh \ + test/speed.sh \ test/rand.sh \ test/rsa_genrsa_check.sh \ test/rsa_genpkey_sign.sh \ diff --git a/test/speed.sh b/test/speed.sh new file mode 100755 index 0000000..01c50e2 --- /dev/null +++ b/test/speed.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +set -eufx + +# ECDSA NIST P256 +#openssl speed -seconds 2 ecdsap256 +openssl speed -provider tpm2 -seconds 2 ecdsap256