]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
prevent large latency in base64_simdutf test
authorNeil Horman <nhorman@openssl.org>
Sun, 4 Jan 2026 22:42:33 +0000 (17:42 -0500)
committerPauli <paul.dale@oracle.com>
Wed, 7 Jan 2026 00:31:05 +0000 (11:31 +1100)
The base64_simdutf test has a printf statement inside a double for loop
that causes a huge amount of latency when run under our perl scripts.
Average run time on my system is about 1min 58 seconds.

We shouldn't be using a printf statement there anyway (likely TEST_info
instead), but we don't need that either, so just remove the printf
entirely.  This decreases the run time to around a second to complete.

Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29542)

test/test_base64_simdutf.c

index 65c3b747ff1a9140949a3cad16a13af714596f9b..29932eea6032a9d3dff1d55b0045502a16df3943 100644 (file)
@@ -174,8 +174,6 @@ static int test_encode_line_lengths_reinforced(void)
         for (int partial_ctx_fill = 0; partial_ctx_fill <= 80;
             partial_ctx_fill += 1) {
             for (int ctx_len = 1; ctx_len <= 80; ctx_len += 1) {
-                printf("Trial %d, input length %d, ctx length %d, partial ctx fill %d\n",
-                    t + 1, inl, ctx_len, partial_ctx_fill);
                 EVP_ENCODE_CTX *ctx_simd = EVP_ENCODE_CTX_new();
                 EVP_ENCODE_CTX *ctx_ref = EVP_ENCODE_CTX_new();