WangJinchao
bfcec4c65b
crypto: tcrypt - add script tcrypt_speed_compare.py
...
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-12-29 11:25:55 +08:00
..
2023-11-02 15:45:15 -10:00
2023-10-24 16:07:32 -07:00
2023-10-30 13:46:27 -07:00
2023-12-29 11:25:55 +08:00
2023-10-10 03:42:29 +00:00
2023-10-05 16:16:20 +01:00
2023-11-03 08:17:38 -10:00
2023-11-03 08:17:38 -10:00
2023-10-18 14:34:19 -07:00
2023-11-06 09:03:46 +00:00
2023-11-01 10:28:32 -10:00
2023-11-03 08:17:38 -10:00
2023-11-07 20:46:13 +01:00
2023-10-18 15:29:47 -07:00
2023-11-12 10:58:08 -08:00
2023-10-15 23:40:10 +02:00
2023-10-30 19:00:12 +01:00
2023-10-30 16:59:12 +01:00
2023-10-16 05:32:23 -04:00