Skip to content

feat(crypto): Add crypto perf table for different hardware#652

Draft
jsuhaas22 wants to merge 1 commit intoTexasInstruments:masterfrom
jsuhaas22:crypto-perf-compare
Draft

feat(crypto): Add crypto perf table for different hardware#652
jsuhaas22 wants to merge 1 commit intoTexasInstruments:masterfrom
jsuhaas22:crypto-perf-compare

Conversation

@jsuhaas22
Copy link
Copy Markdown
Collaborator

Add a performance table which contains the output of openssl speed ... command over the 3 different hardware options: SA2UL/DTHEv2 accelerator, ARM CE, and base ARM, for AES-128-CBC algorithm. This gives a clear picture of how crypto operations fare over each IP option.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

New issues found with check_toc_txt.py:

WARNING:root:File not in any toc: source/devices/AM62PX/linux/crypto_perf_aes_128_cbc.rst
WARNING:root:File not in any toc: source/devices/AM62X/linux/crypto_perf_aes_128_cbc.rst
WARNING:root:File not in any toc: source/devices/AM62LX/linux/crypto_perf_aes_128_cbc.rst
WARNING:root:File not in any toc: source/devices/AM64X/linux/crypto_perf_aes_128_cbc.rst

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

New warnings found with rstcheck:

source/linux/Foundational_Components/Kernel/Kernel_Drivers/Crypto/DTHEv2.rst:223: (SEVERE/4) Problems with "include" directive path:

@jsuhaas22 jsuhaas22 force-pushed the crypto-perf-compare branch from 10b4891 to 5765ba4 Compare April 7, 2026 13:36
Comment on lines +1 to +12
.. csv-table:: AES-128-CBC Performance
:header: "Size (bytes)", "DTHEv2 Accelerator", "ARM CE", "ARM"
:widths: 30, 30, 30, 30

"16", "0.28", "86.86", "28.02"
"64", "1.16", "271.43", "35.57"
"256", "4.63", "568.25", "38.33"
"1024", "17.15", "800.83", "39.08"
"8192", "82.06", "908.72", "39.31"
"16384", "112.48", "917.23", "39.02"
"CPU Usage %", "18", "99", "99"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm just a stickler for this, but what unit is that 0.28 and other measurements reported for the given size? I assume it's some unit of time, but it's not particularly clear.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its MB/s. I have mentioned it in column headings now.

Comment on lines +303 to +322
*******************************
Hardware Performance Comparison
*******************************

The following table shows AES-128-CBC throughput measured using ``openssl speed``
across the SA2UL hardware accelerator, ARM Cryptographic Extension (CE), and
baseline ARM CPU.

.. ifconfig:: CONFIG_part_variant in ('AM62X')

.. include:: ../../../../../devices/AM62X/linux/_Crypto_Perf_AES_128_CBC.rst

.. ifconfig:: CONFIG_part_variant in ('AM62PX')

.. include:: ../../../../../devices/AM62PX/linux/_Crypto_Perf_AES_128_CBC.rst

.. ifconfig:: CONFIG_part_variant in ('AM64X')

.. include:: ../../../../../devices/AM64X/linux/_Crypto_Perf_AES_128_CBC.rst

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular reason this is getting special treatment and not being included in the platform specific performance report that's automatically generated from our test infra?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a test ready right now which compares the performance of crypto operations over the 3 hardware options. It's WIP.

@StaticRocket
Copy link
Copy Markdown
Member

Add a performance table which contains the output of `openssl speed ...` command
over the 3 different hardware options: SA2UL/DTHEv2 accelerator, ARM CE, and
base ARM, for AES-128-CBC algorithm. This gives a clear picture of how crypto
operations fare over each IP option.

Signed-off-by: Suhaas Joshi <s-joshi@ti.com>
@jsuhaas22 jsuhaas22 force-pushed the crypto-perf-compare branch from 5765ba4 to ed36189 Compare April 8, 2026 05:18
@jsuhaas22 jsuhaas22 marked this pull request as draft April 8, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.