]> Cypherpunks repositories - gostls13.git/commit
crypto/sha256, crypto/sha512: 1.3x speedup
authorDmitry Chestnykh <dchest@gmail.com>
Fri, 5 Oct 2012 21:04:48 +0000 (17:04 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 5 Oct 2012 21:04:48 +0000 (17:04 -0400)
commitb459afe843d7350822276fc8db50e7b04f1458e9
tree6593904dc30f33330e5458993989e65fa240dc0d
parent23599ca2f6a25aa43c24e24962dcd7616a83d508
crypto/sha256, crypto/sha512: 1.3x speedup

SHA-256:

benchmark          old ns/op    new ns/op    delta
BenchmarkHash1K        21686        16912  -22.01%
BenchmarkHash8K       173216       135020  -22.05%

benchmark           old MB/s     new MB/s  speedup
BenchmarkHash1K        47.22        60.55    1.28x
BenchmarkHash8K        47.29        60.67    1.28x

SHA-512:

benchmark          old ns/op    new ns/op    delta
BenchmarkHash1K        14323        11163  -22.06%
BenchmarkHash8K       114120        88693  -22.28%

benchmark           old MB/s     new MB/s  speedup
BenchmarkHash1K        71.49        91.73    1.28x
BenchmarkHash8K        71.78        92.36    1.29x

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/6584071
src/pkg/crypto/sha256/sha256block.go
src/pkg/crypto/sha512/sha512block.go