mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
wolfcrypt/benchmark/benchmark.c: make iteration increment in bench_aesecb_internal() even lumpier (by a factor of 10) to further reduce false positives from iteration overhead.
This commit is contained in:
@ -3302,7 +3302,7 @@ static void bench_aesecb_internal(int useDeviceID, const byte* key, word32 keySz
|
|||||||
|
|
||||||
bench_stats_start(&count, &start);
|
bench_stats_start(&count, &start);
|
||||||
do {
|
do {
|
||||||
int outer_loop_limit = (bench_size / AES_BLOCK_SIZE) + 1;
|
int outer_loop_limit = ((bench_size / AES_BLOCK_SIZE) * 10) + 1;
|
||||||
for (times = 0;
|
for (times = 0;
|
||||||
times < outer_loop_limit /* numBlocks */ || pending > 0;
|
times < outer_loop_limit /* numBlocks */ || pending > 0;
|
||||||
) {
|
) {
|
||||||
@ -3344,7 +3344,7 @@ exit_aes_enc:
|
|||||||
|
|
||||||
bench_stats_start(&count, &start);
|
bench_stats_start(&count, &start);
|
||||||
do {
|
do {
|
||||||
int outer_loop_limit = (bench_size / AES_BLOCK_SIZE) + 1;
|
int outer_loop_limit = (10 * (bench_size / AES_BLOCK_SIZE)) + 1;
|
||||||
for (times = 0; times < outer_loop_limit || pending > 0; ) {
|
for (times = 0; times < outer_loop_limit || pending > 0; ) {
|
||||||
bench_async_poll(&pending);
|
bench_async_poll(&pending);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user