git: test: Integrate benchmark into cryptoapi_test util
Michael Neumann
mneumann at crater.dragonflybsd.org
Sun Nov 9 06:27:02 PST 2025
commit bd5bbd297764424fe14859827f0c1f6cc047844a
Author: Michael Neumann <mneumann at ntecs.de>
Date: Sun Nov 9 14:23:24 2025 +0100
test: Integrate benchmark into cryptoapi_test util
Print execution times and add "-n REPETITIONS" option.
Take the benchmark results with a grain of salt when comparing the
cryptoapi results against the cryptodev results, as we do not use
the AESNI CPU instruction when crytoapi is used outside the kernel.
While there, parse CLI options using getopt(3) and add a few more
test fixtures.
Summary of changes:
test/crypto/cryptoapi/Makefile | 11 ++-
test/crypto/cryptoapi/crypto-api.c | 31 +++++----
test/crypto/cryptoapi/crypto-dev.c | 44 ++++++------
test/crypto/cryptoapi/cryptoapi_test.c | 116 +++++++++++++++++++++++++------
test/crypto/cryptoapi/expected_output.md | 60 ++++++++++++++++
test/crypto/cryptoapi/fixtures.csv | 4 ++
6 files changed, 207 insertions(+), 59 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bd5bbd297764424fe14859827f0c1f6cc047844a
--
DragonFly BSD source repository
More information about the Commits
mailing list