mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
wolfcrypt/benchmark/benchmark.c: fix bench_stats_sym_finish() in GENERATE_MACHINE_PARSEABLE_REPORT mode to properly render "bytes_total" column in bytes, not the unit selected by WOLFSSL_BENCHMARK_FIXED_UNITS_*.
This commit is contained in:
@ -1888,14 +1888,12 @@ static void bench_stats_sym_finish(const char* desc, int useDeviceID,
|
||||
|
||||
#ifdef GENERATE_MACHINE_PARSEABLE_REPORT
|
||||
#ifdef WOLFSSL_ESPIDF
|
||||
unsigned long bytes_processed = (unsigned long)blocks;
|
||||
unsigned long bytes_processed =
|
||||
(unsigned long)count * (unsigned long)countSz;
|
||||
#else
|
||||
word64 bytes_processed = (word64)blocks;
|
||||
word64 bytes_processed = (word64)count * (word64)countSz;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef GENERATE_MACHINE_PARSEABLE_REPORT
|
||||
/* note this codepath brings in all the fields from the non-CSV case. */
|
||||
#ifdef WOLFSSL_ESPIDF
|
||||
#ifdef HAVE_GET_CYCLES
|
||||
|
Reference in New Issue
Block a user