From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0 Date: Mon, 06 Jan 2020 10:37:44 +0100 Message-ID: <87ftgtdixj.fsf@gnu.org> References: <874kxcnlh8.fsf@inria.fr> <87sgkwm4uv.fsf@gnu.org> <87h81b7bym.fsf@teapot.weinholt.se> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="3052"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Andy Wingo , Guile Devel To: =?utf-8?Q?G=C3=B6ran?= Weinholt Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 06 10:37:55 2020 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioOpf-0000d8-Pa for guile-devel@m.gmane.org; Mon, 06 Jan 2020 10:37:55 +0100 Original-Received: from localhost ([::1]:49840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioOpe-0006J8-0Z for guile-devel@m.gmane.org; Mon, 06 Jan 2020 04:37:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56312) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioOpZ-0006Ii-Gu for guile-devel@gnu.org; Mon, 06 Jan 2020 04:37:50 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ioOpW-0006VK-Qw; Mon, 06 Jan 2020 04:37:46 -0500 Original-Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=57550 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioOpW-0001NM-0f; Mon, 06 Jan 2020 04:37:46 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Niv=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <87h81b7bym.fsf@teapot.weinholt.se> (=?utf-8?Q?=22G=C3=B6ran?= Weinholt"'s message of "Sat, 04 Jan 2020 11:28:01 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20230 Archived-At: Hi G=C3=B6ran, G=C3=B6ran Weinholt skribis: > I've pushed a Guile-specific version of (hashing fixnums) that inlines > the generic arithmetic procedures. This and some other small changes > improved the runtime: > > clock utime stime cutime cstime gctime > before: > 2.2.6 31.06 32.61 0.03 0.00 0.00 1.38 > 2.9.8 15.55 16.23 0.01 0.00 0.00 1.19 > after: > 2.2.6 2.95 3.01 0.00 0.00 0.00 0.10 > 2.9.8 1.98 1.99 0.00 0.00 0.00 0.08 Excellent! > That's about 100 times slower than sha256sum from coreutils. You might > get some more performance out of it by unrolling the loop in > sha-256-transform!. I suppose that=E2=80=99s a challenge for Andy. ;-) Thanks, Ludo=E2=80=99.