Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(182)

Issue 28460043: code review 28460043: crypto/sha256: block implementation in amd64 assembly (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by jsing
Modified:
12 years, 5 months ago
Reviewers:
agl1, Donovan
CC:
agl1, golang-dev
Visibility:
Public.

Description

crypto/sha256: block implementation in amd64 assembly Benchmark on Intel(R) Xeon(R) CPU X5650  @ 2.67GHz benchmark old ns/op new ns/op delta BenchmarkHash8Bytes 1259 677 -46.23% BenchmarkHash1K 14387 6749 -53.09% BenchmarkHash8K 106006 50107 -52.73% benchmark old MB/s new MB/s speedup BenchmarkHash8Bytes 6.35 11.81 1.86x BenchmarkHash1K 71.17 151.72 2.13x BenchmarkHash8K 77.28 163.49 2.12x

Patch Set 1 : diff -r bddf2a72f5e1 https://go.googlecode.com/hg/ #

Patch Set 2 : diff -r bddf2a72f5e1 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 3 : diff -r bddf2a72f5e1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -1 line) Patch
M src/pkg/crypto/sha256/sha256.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/sha256/sha256block.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A src/pkg/crypto/sha256/sha256block_amd64.s View 1 2 1 chunk +256 lines, -0 lines 0 comments Download
A src/pkg/crypto/sha256/sha256block_decl.go View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 7
jsing
Hello agl@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2013-12-02 14:25:06 UTC) #1
agl1
LGTM with nits. Just to confirm - the addition of |s| to |digest| is just ...
12 years, 5 months ago (2013-12-02 17:56:25 UTC) #2
jsing
On 2013/12/02 17:56:25, agl1 wrote: > LGTM with nits. > > Just to confirm - ...
12 years, 5 months ago (2013-12-10 12:34:23 UTC) #3
agl1
*** Submitted as https://code.google.com/p/go/source/detail?r=5de0f8743adf *** crypto/sha256: block implementation in amd64 assembly Benchmark on Intel(R) Xeon(R) ...
12 years, 5 months ago (2013-12-11 16:41:45 UTC) #4
donovanhide_gmail.com
Hi, are they any plans for giving the same treatment to SHA512? The proof of ...
12 years, 5 months ago (2013-12-21 17:07:26 UTC) #5
jsing
I had planned on looking at it, but it was low on my list of ...
12 years, 5 months ago (2013-12-22 06:46:41 UTC) #6
donovanhide_gmail.com
12 years, 5 months ago (2013-12-22 11:54:53 UTC) #7
Wow, that looks extremely good to me :-)

Thank you very, very much! I'm contacting the Guinness Books to ask them to
record the fastest delivery of an assembly version of a crypto hasher!

Cheers,
Donovan (busy proving work!)


On 22 December 2013 06:46, Joel Sing <jsing@google.com> wrote:

> I had planned on looking at it, but it was low on my list of priorities...
> however, since you asked :)
>
> https://codereview.appspot.com/37150044
>
>
> On 22 December 2013 04:07, Donovan Hide <donovanhide@gmail.com> wrote:
>
>> Hi,
>>
>> are they any plans for giving the same treatment to SHA512? The proof of
>> work algorithm for Ripple uses an unusual hash that involves taking the
>> first 32 bytes of a SHA512 hash. Would be great if we could get similar
>> speedups :-)
>>
>> https://ripple.com/wiki/Proof_of_Work
>>
>> All the best,
>> Donovan.
>>
>>
>> On 11 December 2013 16:41, <agl@golang.org> wrote:
>>
>>>  *** Submitted as
>>> https://code.google.com/p/go/source/detail?r=5de0f8743adf ***
>>>
>>> crypto/sha256: block implementation in amd64 assembly
>>>
>>> Benchmark on Intel(R) Xeon(R) CPU X5650  @ 2.67GHz
>>>
>>> benchmark              old ns/op    new ns/op    delta
>>> BenchmarkHash8Bytes         1259          677  -46.23%
>>> BenchmarkHash1K            14387         6749  -53.09%
>>> BenchmarkHash8K           106006        50107  -52.73%
>>>
>>> benchmark               old MB/s     new MB/s  speedup
>>> BenchmarkHash8Bytes         6.35        11.81    1.86x
>>> BenchmarkHash1K            71.17       151.72    2.13x
>>> BenchmarkHash8K            77.28       163.49    2.12x
>>>
>>> R=agl
>>> CC=golang-dev
>>> https://codereview.appspot.com/28460043
>>>
>>> Committer: Adam Langley <agl@golang.org>
>>>
>>>
>>>
>>> https://codereview.appspot.com/28460043/
>>>
>>> --
>>>
>>> ---You received this message because you are subscribed to the Google
>>> Groups "golang-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to golang-dev+unsubscribe@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b