mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Benchmark: fix reporting of base10
This commit is contained in:
@@ -1665,8 +1665,8 @@ static WC_INLINE int bench_stats_check(double start)
|
|||||||
return ((current_time(0) - start) < BENCH_MIN_RUNTIME_SEC);
|
return ((current_time(0) - start) < BENCH_MIN_RUNTIME_SEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return text for units and scale the value of blocks as needed for base2 */
|
/* return text for units and scale the value of blocks as needed */
|
||||||
static const char* get_blocktype_base10(double* blocks)
|
static const char* get_blocktype(double* blocks)
|
||||||
{
|
{
|
||||||
const char* rt;
|
const char* rt;
|
||||||
|
|
||||||
@@ -1674,7 +1674,7 @@ static const char* get_blocktype_base10(double* blocks)
|
|||||||
defined(WOLFSSL_BENCHMARK_FIXED_UNITS_GB))
|
defined(WOLFSSL_BENCHMARK_FIXED_UNITS_GB))
|
||||||
#undef WOLFSSL_FIXED_UNITS_PER_SEC
|
#undef WOLFSSL_FIXED_UNITS_PER_SEC
|
||||||
#define WOLFSSL_FIXED_UNITS_PER_SEC "GB/s"
|
#define WOLFSSL_FIXED_UNITS_PER_SEC "GB/s"
|
||||||
*blocks /= (1000UL * 1000UL * 1000UL);
|
*blocks /= (1024UL * 1024UL * 1024UL);
|
||||||
rt = "GiB";
|
rt = "GiB";
|
||||||
#elif (defined(WOLFSSL_BENCHMARK_FIXED_UNITS_M) || \
|
#elif (defined(WOLFSSL_BENCHMARK_FIXED_UNITS_M) || \
|
||||||
defined(WOLFSSL_BENCHMARK_FIXED_UNITS_MB))
|
defined(WOLFSSL_BENCHMARK_FIXED_UNITS_MB))
|
||||||
@@ -1712,8 +1712,8 @@ static const char* get_blocktype_base10(double* blocks)
|
|||||||
return rt;
|
return rt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return text for units and scale the value of blocks as needed */
|
/* return text for units and scale the value of blocks as needed for base2 */
|
||||||
static const char* get_blocktype(double* blocks)
|
static const char* get_blocktype_base10(double* blocks)
|
||||||
{
|
{
|
||||||
const char* rt;
|
const char* rt;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user