• Joel Sing's avatar
    crypto/sha512: block implementation in amd64 assembly · 0a370023
    Joel Sing authored
    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
    0a370023
sha512block.go 3.2 KB