guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0


From: Arne Babenhauserheide
Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0
Date: Sat, 04 Jan 2020 22:39:41 +0100
User-agent: mu4e 1.2.0; emacs 26.1

Göran Weinholt <address@hidden> 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’d 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’s 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
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]