]> Cypherpunks repositories - gostls13.git/commit
crypto/sha512: block implementation in amd64 assembly
authorJoel Sing <jsing@google.com>
Tue, 7 Jan 2014 12:16:46 +0000 (23:16 +1100)
committerJoel Sing <jsing@google.com>
Tue, 7 Jan 2014 12:16:46 +0000 (23:16 +1100)
commit0a37002367502fc24d7753e360954da290ffb71a
tree91bd86550cda01dd823fc4d9f226ecaadeeea6d3
parent901e7bfe53b4610ef9ff9eef5d2cbec7671b6f68
crypto/sha512: block implementation in amd64 assembly

Benchmark on Intel(R) Xeon(R) CPU X5650  @ 2.67GHz

benchmark              old ns/op    new ns/op    delta
BenchmarkHash8Bytes         1779         1114  -37.38%
BenchmarkHash1K             9848         4894  -50.30%
BenchmarkHash8K            68513        32187  -53.02%

benchmark               old MB/s     new MB/s  speedup
BenchmarkHash8Bytes         4.50         7.18    1.60x
BenchmarkHash1K           103.97       209.19    2.01x
BenchmarkHash8K           119.57       254.51    2.13x

R=agl
CC=golang-codereviews
https://golang.org/cl/37150044
src/pkg/crypto/sha512/sha512block.go
src/pkg/crypto/sha512/sha512block_amd64.s [new file with mode: 0644]
src/pkg/crypto/sha512/sha512block_decl.go [new file with mode: 0644]