Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4326843rdb; Thu, 28 Dec 2023 19:28:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXLdIVyutXXMuxJeXst4PpATzm/+AOXI9PZCk9PI2sf4rHn8ceZfu6BEIyQZRbMLbctpmt X-Received: by 2002:a05:620a:880f:b0:781:4366:97ac with SMTP id qj15-20020a05620a880f00b00781436697acmr11095055qkn.104.1703820510685; Thu, 28 Dec 2023 19:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703820510; cv=none; d=google.com; s=arc-20160816; b=FkgaRSmuwElwz8NA6vmFuKWV0fQqeAuacQvh1WAGL2m3qL2b4VFa94HsRzo+WPImgb oBeatCXqXqCGvkH1gP4RoDKbp03wK7OkP8RcmcOJnrgmnT3d4Od4c4aFudIHY+veNMer EBtRhK3iFPAeg8vVoibTd8idwWWjNGYa3zuRW8Y71ikWeROtt5xAg961BOifDwtrwn20 6hBuMjQS4TjJIjgiWGZuxyNZ/kUp2+TgIyG6B4A9w7QtA+t6bLhse9Nfxahx2oC2tnRf jVsqzO+FJYiC1rZdhfEPmCSbfYGHaDzpH3XO0Q+BKAW9TWKRIDIbUVz+W5UIe/98CV1A FgAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=W+1nu0b/xSqBmssmCSBmDXfzP59FgbzZuqNt0B4JVk8=; fh=I3gOOnWVElmu9s7jhD4JLMk5PgMYBh25s2EtE++HrYQ=; b=pobsERF0EDivpIYugSQC4ryWyTPBsiPOQpKh9ny9YTzJLQM8aCH71/9OBabSFYG6pr /xLLxZ2Px2GSk4pZ/Sf1YYXXSsbZa/kPqOF5QgXVEQELP5F+szzNW4yAsS0pJ0Ktt9/Z j3oNKSMpQVPTtgu1QWa/u3QrvZfMqXTbIsuXWHnXuhCGmP6loc2k4QPhdBpf8+HG4WVe oYliS3ZiuT7KDOtAXkBh+Cwfl4Ju88kSck7313sklunGg2LDv3hW6zcCGt/pOQcdWgZU sDoNFUc3xY/oNzD6DzM2zpFyldv2Wewe0hVtF84QRLVWUFNbkVzQwAEuO7mGDMBjtn22 UvSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1077-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w3-20020a05620a444300b0077d87e2d618si10319244qkp.472.2023.12.28.19.28.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:28:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1077-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 444AA1C214DB for ; Fri, 29 Dec 2023 03:28:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 177C817FA; Fri, 29 Dec 2023 03:28:27 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0571E17D8; Fri, 29 Dec 2023 03:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rJ3Xj-00FG2T-5H; Fri, 29 Dec 2023 11:28:16 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 29 Dec 2023 11:28:26 +0800 Date: Fri, 29 Dec 2023 11:28:26 +0800 From: Herbert Xu To: WangJinchao Cc: "David S. Miller" , Tim Chen , 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 Message-ID: References: <202312182113+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > --- > 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 Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt