Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance degradation after OpenSSL 3.0.14 uptake #24789

Open
pruthig opened this issue Jul 3, 2024 · 1 comment
Open

Performance degradation after OpenSSL 3.0.14 uptake #24789

pruthig opened this issue Jul 3, 2024 · 1 comment
Labels
branch: 3.0 Merge to openssl-3.0 branch triaged: performance The issue/pr reports/fixes a performance concern

Comments

@pruthig
Copy link

pruthig commented Jul 3, 2024

Hi Team,

We have upgraded our tool to use OpenSSL 3.0.14 instead of OpenSSL 3.0.13. As a part of our regular OpenSSL uptake process, we performed the performance testing on OpenSSL 3.0.14. We didn't expect any deviation, but, surprisingly, we observed degradation in 8 symmetric encryption algorithms we validated for performance. Following are the performance numbers for 1000000 iterations.

: <Time taken for 1000000 iterations>

OpenSSL 3.0.13

AES-256-CFB_OpenSSL_fips : 49213 ms
AES-256-GCM_OpenSSL : 1045 ms
AES-256-CBC_OpenSSL : 2122 ms
AES-256-CBC_OpenSSL_fips : 19083 ms
AES-128-GCM_OpenSSL : 952 ms
AES-128-GCM_OpenSSL_fips : 8602 ms
AES-128-CBC_OpenSSL : 1564 ms
AES-128-CBC_OpenSSL_fips : 14089 ms

OpenSSL 3.0.14

AES-256-CFB_OpenSSL_fips : 49696 ms
AES-256-GCM_OpenSSL : 1054 ms
AES-256-CBC_OpenSSL : 2125 ms
AES-256-CBC_OpenSSL_fips : 19153 ms
AES-128-GCM_OpenSSL : 959 ms
AES-128-GCM_OpenSSL_fips : 8661 ms
AES-128-CBC_OpenSSL : 1573 ms
AES-128-CBC_OpenSSL_fips : 14140 ms

Performance degradation

AES-256-CFB_OpenSSL_fips : -0.98%
AES-256-GCM_OpenSSL : -0.86%
AES-256-CBC_OpenSSL :-0.14%
AES-256-CBC_OpenSSL_fips : -0.37%
AES-128-GCM_OpenSSL : -0.74%
AES-128-GCM_OpenSSL_fips : -0.69%
AES-128-CBC_OpenSSL : -0.58%
AES-128-CBC_OpenSSL_fips : -0.36%

@pruthig pruthig added the issue: bug report The issue was opened to report a bug label Jul 3, 2024
@t8m t8m added triaged: performance The issue/pr reports/fixes a performance concern branch: 3.0 Merge to openssl-3.0 branch and removed issue: bug report The issue was opened to report a bug labels Jul 3, 2024
@t8m
Copy link
Member

t8m commented Jul 3, 2024

There do not seem to be any relevant changes between 3.0.13 and 3.0.14 that should affect the performance. The only one remotely related change is: 4654e94

How does your performance measurement work? Does it by any chance spawn a new process for each iteration? If so, that could explain the difference. It would also somewhat explain the otherwise unexplainable difference between the fips and non-fips measurements above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch: 3.0 Merge to openssl-3.0 branch triaged: performance The issue/pr reports/fixes a performance concern
Projects
None yet
Development

No branches or pull requests

2 participants