mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Added build-time override for benchmark thread count WC_ASYNC_BENCH_THREAD_COUNT
.
This commit is contained in:
@@ -1701,8 +1701,13 @@ int benchmark_test(void *args)
|
|||||||
|
|
||||||
#if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WC_NO_ASYNC_THREADING)
|
#if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WC_NO_ASYNC_THREADING)
|
||||||
{
|
{
|
||||||
int i;
|
int i, numCpus;
|
||||||
int numCpus = wc_AsyncGetNumberOfCpus();
|
|
||||||
|
#ifdef WC_ASYNC_BENCH_THREAD_COUNT
|
||||||
|
numCpus = WC_ASYNC_BENCH_THREAD_COUNT;
|
||||||
|
#else
|
||||||
|
numCpus = wc_AsyncGetNumberOfCpus();
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("CPUs: %d\n", numCpus);
|
printf("CPUs: %d\n", numCpus);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user