From: Herbert Xu <herbert@gondor.apana.org.au>
To: WangJinchao <wangjinchao@xfusion.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Tim Chen <tim.c.chen@linux.intel.com>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
stone.xulei@xfusion.com
Subject: Re: [PATCH v2] crypto:tcrypt: add script tcrypt_speed_compare.py
Date: Fri, 29 Dec 2023 11:28:26 +0800 [thread overview]
Message-ID: <ZY482sGYU+4s8eJj@gondor.apana.org.au> (raw)
In-Reply-To: <202312182113+0800-wangjinchao@xfusion.com>
On Mon, Dec 18, 2023 at 09:15:01PM +0800, WangJinchao wrote:
> Create a script for comparing tcrypt speed test logs.
> The script will systematically analyze differences item
> by item and provide a summary (average).
> This tool is useful for evaluating the stability of
> cryptographic module algorithms and assisting with
> performance optimization.
>
> Please note that for such a comparison, stability depends
> on whether we allow frequency to float or pin the frequency.
>
> The script produces comparisons in two scenes:
>
> 1. For operations in seconds
> ================================================================================
> rfc4106(gcm(aes)) (pcrypt(rfc4106(gcm_base(ctr(aes-generic),ghash-generic))))
> encryption
> --------------------------------------------------------------------------------
> bit key | byte blocks | base ops | new ops | differ(%)
> 160 | 16 | 66439 | 63063 | -5.08
> 160 | 64 | 62220 | 57439 | -7.68
> ...
> 288 | 4096 | 15059 | 16278 | 8.09
> 288 | 8192 | 9043 | 9526 | 5.34
> --------------------------------------------------------------------------------
> average differ(%s) | total_differ(%)
> --------------------------------------------------------------------------------
> 5.70 | -4.49
> ================================================================================
>
> 2. For avg cycles of operation
> ================================================================================
> rfc4106(gcm(aes)) (pcrypt(rfc4106(gcm_base(ctr(aes-generic),ghash-generic))))
> encryption
> --------------------------------------------------------------------------------
> bit key | byte blocks | base cycles | new cycles | differ(%)
> 160 | 16 | 32500 | 35847 | 10.3
> 160 | 64 | 33175 | 45808 | 38.08
> ...
> 288 | 4096 | 131369 | 132132 | 0.58
> 288 | 8192 | 229503 | 234581 | 2.21
> --------------------------------------------------------------------------------
> average differ(%s) | total_differ(%)
> --------------------------------------------------------------------------------
> 8.41 | -6.70
> ================================================================================
>
> Signed-off-by: WangJinchao <wangjinchao@xfusion.com>
> ---
> MAINTAINERS | 6 +
> tools/crypto/tcrypt/tcrypt_speed_compare.py | 190 ++++++++++++++++++++
> 2 files changed, 196 insertions(+)
> create mode 100755 tools/crypto/tcrypt/tcrypt_speed_compare.py
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2023-12-29 3:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 13:15 WangJinchao
2023-12-29 3:28 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZY482sGYU+4s8eJj@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davem@davemloft.net \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stone.xulei@xfusion.com \
--cc=tim.c.chen@linux.intel.com \
--cc=wangjinchao@xfusion.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®