]> Cypherpunks repositories - gostls13.git/commit
crypto/sha256: block implementation in 386 assembly
authorJoel Sing <jsing@google.com>
Mon, 6 Jan 2014 18:31:22 +0000 (13:31 -0500)
committerAdam Langley <agl@golang.org>
Mon, 6 Jan 2014 18:31:22 +0000 (13:31 -0500)
commit232a4e89a4ca6d52cad64e29eaad34f8874f3f7a
tree39e56bbe2fda02cacac5c71c82a74e6a6f32023d
parent939b3fa39eafff3f10c092ef882c935c0bce9c06
crypto/sha256: block implementation in 386 assembly

Benchmark on Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz (albeit in a VM)

benchmark              old ns/op    new ns/op    delta
BenchmarkHash8Bytes         1606          699  -56.48%
BenchmarkHash1K            21920         7268  -66.84%
BenchmarkHash8K           165696        53756  -67.56%

benchmark               old MB/s     new MB/s  speedup
BenchmarkHash8Bytes         4.98        11.44    2.30x
BenchmarkHash1K            46.72       140.88    3.02x
BenchmarkHash8K            49.44       152.39    3.08x

R=agl, cldorian
CC=golang-codereviews
https://golang.org/cl/44800044
src/pkg/crypto/sha256/sha256block.go
src/pkg/crypto/sha256/sha256block_386.s [new file with mode: 0644]
src/pkg/crypto/sha256/sha256block_decl.go