Skip to content

Commit 7593377

Browse files
committed
Continued updates to new benchmarks
1 parent b47f7fa commit 7593377

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

wolfcrypt/benchmark/benchmark.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,12 +2050,6 @@ static const char* bench_result_words3[][5] = {
20502050
#define BENCH_ASYM
20512051
#endif
20522052

2053-
#if defined(BENCH_ASYM)
2054-
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DH) || \
2055-
defined(HAVE_CURVE25519) || defined(HAVE_ED25519) || \
2056-
defined(HAVE_CURVE448) || defined(HAVE_ED448) || \
2057-
defined(WOLFSSL_HAVE_MLKEM) || defined(HAVE_DILITHIUM) || \
2058-
defined(WOLFSSL_HAVE_LMS)
20592053
static const char* bench_result_words2[][6] = {
20602054
#ifdef BENCH_MICROSECOND
20612055
{ "ops took", "μsec" , "avg" , "ops/μsec", "cycles/op",
@@ -2069,8 +2063,6 @@ static const char* bench_result_words2[][6] = {
20692063
NULL }, /* 1 Japanese */
20702064
#endif
20712065
};
2072-
#endif
2073-
#endif
20742066

20752067
#ifdef WOLFSSL_CAAM
20762068
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
@@ -3191,6 +3183,7 @@ static void bench_stats_sym_finish(const char* desc, int useDeviceID,
31913183
TEST_SLEEP();
31923184
} /* bench_stats_sym_finish */
31933185

3186+
#ifndef WC_NO_RNG
31943187
/* Report ops/sec in the same format as bench_stats_asym_finish, but without
31953188
* requiring BENCH_ASYM to be defined. Used for benchmarks like RNG init/free
31963189
* that measure operation counts rather than byte throughput. */
@@ -3284,6 +3277,7 @@ static void bench_stats_ops_finish(const char* algo, int strength,
32843277
bench_stats_prepare();
32853278
TEST_SLEEP();
32863279
} /* bench_stats_ops_finish */
3280+
#endif /* !WC_NO_RNG */
32873281

32883282
#ifdef BENCH_ASYM
32893283
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DH) || \

0 commit comments

Comments
 (0)