From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Arne Babenhauserheide Newsgroups: gmane.lisp.guile.devel Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0 Date: Sat, 04 Jan 2020 22:39:41 +0100 Message-ID: <87ftgurkfv.fsf@web.de> 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="242591"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.1 Cc: Andy Wingo , Ludovic =?utf-8?Q?Court=C3=A8s?= To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jan 04 22:40:57 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 1inrAF-0010tu-1D for guile-devel@m.gmane.org; Sat, 04 Jan 2020 22:40:55 +0100 Original-Received: from localhost ([::1]:37018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inrA9-0001oh-Jz for guile-devel@m.gmane.org; Sat, 04 Jan 2020 16:40:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inr9V-0001ob-0v for guile-devel@gnu.org; Sat, 04 Jan 2020 16:40:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inr9T-00039D-UM for guile-devel@gnu.org; Sat, 04 Jan 2020 16:40:08 -0500 Original-Received: from mout.web.de ([217.72.192.78]:49305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inr9R-0002sq-W4; Sat, 04 Jan 2020 16:40:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1578173983; bh=mZ7eMp5xr1b9f+rcXNkEIlC9Es6SEOjC76WWuynTZSw=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=n9CFy9Bsif/c4XJ0ToWlHYisaFbWUYBSwM/GFsVCkPlP87lVBq/Q3TiRjVYfIOvZF 7PTE0+XIO13oDjvR4DbgyOqeF5H73asER+TGT+mchM1OLr0nTZaclhWlgjEcDAlrRu L/UidZmBHk04znIhP1UH910qggkYGmsh4pOS8OGY= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from fluss ([84.165.17.138]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LnjFb-1jMO4e2Dd9-00httk; Sat, 04 Jan 2020 22:39:43 +0100 In-reply-to: <87h81b7bym.fsf@teapot.weinholt.se> X-Provags-ID: V03:K1:q4MAvRRY0EO9FLTXZLA4CVJG8Ohh5diEWErtXNm0IcK0XxIkkuY f6ca0ypPBnmGmTunfKaoC1agQlEVv1Yh5kZibg1QrTWy3iJ+1qfWshIdNlgeOwHL23afixB fFzOPLPXglfZjwgrwDxIgt803ztIhsdgn3+NiIZC5JsMpz0AFqjTGWkyIiU9g3zBs/09aOm 986CyMSTWVv9z9/1/awNQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:qAfqPyZvZRY=:mAN62osipepBlJY/i3Cw0Z sg9PBLNohD4m5P0aY2bHmEchGBHc4p35IfpEU5l7PfrUnPmXsK7fdVtA2w2TSefpMFOIjy2Vd xgGtOFdxJ7UU0xE+UuKpGRNEKrJj50h5cEDN9dc/RlTC5CQqLSV1hdFOqL1JiLf/dvCuuDJoH P99/q5HIcyTKtSApPdyIoT9Ze++KxUpm7HPW+lCPW7P0SnZEyePEaoWjr7QtDPL6GrGZLKHda Ii1O828ST4aV1kQetR6khaUNO2t1Iv7y9pHDklGPVyXUXNDXlgrpp5tt6Z75oPGfTCVizgMvf ort7ED/KMQN+F4mnRZ6ntdlj9HCYUFHeeOOmZAfJXDeCdBX/othe/lA5VwkJzz6ndK6pV8cyN 038xlj54773Qv4iiFSzNu0cgpSrbA9J1pf+kGLQuKVZZbZ492C+BTyJos9MDq8QHKWlK99q1M dWMwQhnZywI6jJ3kxSaRl1bF+tQOs/fLIBpDsGHzwkPY2t0spqn4JLxY4CT3uskkFhLenws0Y 2CDsXrKaZbSbxHcktJfbUTJDDvD9X7U1FBJx2n6BknOAUDdXtjnt1vr1odxLsK8qhwbp9roBv ufhG8MVanRqUX+UbAK/Nu5kIrWFTQn0RlTxXN0oi29HlNXdy+nDtzemSCo4YtTOdNvSceqKGb jUad6y/p805K55SwNt48nT8toyNiSWUCqcm4V3p55Cqpdu5C/0dn6l+V95zZmsXDsSY2K7xGu DTQ+ANTXE9AdN2SqeHjeOY4JVJ0gDHGHhuDct2cLO+vGP6E7aGr0sx7z/HtycH14LA6eGcwN X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.78 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:20214 Archived-At: G=C3=B6ran Weinholt writes: > 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 > > 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=E2=80=99d like to highlight the understatement: The new version is about factor 10 faster on 2.2.6 and factor 8 faster on 2.9.8 (and the new version on Guile 2.9.8 is factor 15 faster than the old version with the old Guile). That=E2=80=99s an awesome speedup! (can you show the change/patch that did this? Sidenote: It would be great to have a list of performance hints for Guile) Best wishes, Arne =2D- Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken