|
crypto: amd64 assembly for hashes
Tuning the Go versions was a good source of things to fix
in the compiler, but ultimately the assembly is going to win.
Can't beat 'em, so join 'em.
Only adding assembly for SHA1, but set up for assembly
from others, if we can find some with acceptable licensing.
benchmark old MB/s new MB/s speedup
sha1.BenchmarkHash8K 87.31 369.56 4.23x
Total comments: 5
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1585 lines, -32 lines) |
Patch |
 |
A |
src/pkg/crypto/gen.sh
|
View
|
1
2
3
4
5
|
1 chunk |
+126 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/pkg/crypto/md5/asm.go
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/md5/gen.go
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/md5/md5.go
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/md5/md5block.go
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
A |
src/pkg/crypto/sha1/asm.go
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/pkg/crypto/sha1/block_amd64.s
|
View
|
1
2
3
4
5
|
1 chunk |
+1313 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha1/sha1.go
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha1/sha1_test.go
|
View
|
1
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha1/sha1block.go
|
View
|
1
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
A |
src/pkg/crypto/sha256/asm.go
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha256/sha256.go
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha256/sha256_test.go
|
View
|
1
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha256/sha256block.go
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
A |
src/pkg/crypto/sha512/asm.go
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha512/sha512.go
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha512/sha512_test.go
|
View
|
1
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha512/sha512block.go
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 8
|