Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-07 Thread Ludovic Courtès
Andy Wingo skribis: > On Tue 07 Jan 2020 12:08, Ludovic Courtès writes: > >> Andy Wingo skribis: >> >>> Concretely I would add a little part of the compiler to the Tree-IL >>> phase to serialize a bytecode for the "small" definitions in the module, >>> for declarative modules, both public and

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-07 Thread Andy Wingo
On Tue 07 Jan 2020 12:08, Ludovic Courtès writes: > Andy Wingo skribis: > >> Concretely I would add a little part of the compiler to the Tree-IL >> phase to serialize a bytecode for the "small" definitions in the module, >> for declarative modules, both public and private (because public >>

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-07 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > On Mon 06 Jan 2020 10:47, Ludovic Courtès writes: > >> Andy Wingo skribis: >> >>> With cross-module inlining of "small" definitions, I think we would >>> solve a lot of this kind of problem. I think we could add this during >>> 3.0 and for this reason I would

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Andy Wingo
On Mon 06 Jan 2020 10:47, Ludovic Courtès writes: > Andy Wingo skribis: > >> With cross-module inlining of "small" definitions, I think we would >> solve a lot of this kind of problem. I think we could add this during >> 3.0 and for this reason I would hesitate to apply this patch for 3.0 >>

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Ludovic Courtès
Hello, Andy Wingo skribis: > On Sat 04 Jan 2020 01:40, Ludovic Courtès writes: > >> Ludovic Courtès skribis: >> >>> ludo@ribbon ~/src/guix$ ./pre-inst-env guix environment --pure --ad-hoc >>> guile-next guile3.0-hashing -- guile ~/tmp/sha256.scm >>> >>> ;;; (hash >>>

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Ludovic Courtès
Hi Göran, Göran 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

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-05 Thread Göran Weinholt
Arne Babenhauserheide writes: > Göran 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:

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-05 Thread Andy Wingo
On Sat 04 Jan 2020 01:40, Ludovic Courtès writes: > Ludovic Courtès skribis: > >> ludo@ribbon ~/src/guix$ ./pre-inst-env guix environment --pure --ad-hoc >> guile-next guile3.0-hashing -- guile ~/tmp/sha256.scm >> >> ;;; (hash "b33576331465a60b003573541bf3b1c205936a16c407bc69f8419a527bf5c988")

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-04 Thread Arne Babenhauserheide
Göran 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

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-04 Thread Nala Ginrut
Congrats! I just replaced Weinholt's hmac implementation with NSS binding for product consideration, but nice to know this great result! And thanks to Weinholt's work, Artanis had been relying on it for many years. Best regards. On Sat, Jan 4, 2020, 18:36 Göran Weinholt wrote: > Ludovic

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-04 Thread Göran Weinholt
Ludovic Courtès writes: > Ludovic Courtès skribis: > >> ludo@ribbon ~/src/guix$ ./pre-inst-env guix environment --pure --ad-hoc >> guile-next guile3.0-hashing -- guile ~/tmp/sha256.scm >> >> ;;; (hash "b33576331465a60b003573541bf3b1c205936a16c407bc69f8419a527bf5c988") >> clock utime stime

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-03 Thread Ludovic Courtès
Ludovic Courtès skribis: > ludo@ribbon ~/src/guix$ ./pre-inst-env guix environment --pure --ad-hoc > guile-next guile3.0-hashing -- guile ~/tmp/sha256.scm > > ;;; (hash "b33576331465a60b003573541bf3b1c205936a16c407bc69f8419a527bf5c988") > clock utime stime cutime cstime gctime > 65.17 89.75

SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-03 Thread Ludovic Courtès
Hello Guilers! Göran Weinholt wrote a pure-Scheme (R6RS) implementation of common cryptographic hash functions: https://github.com/weinholt/hashing I thought this would make a useful benchmark (and probably favorable to JIT because it’s one hot loop), so here goes (computing the SHA256 hash