#### **sha256-simd加速结果对比报告**
使用 https://github.com/minio/sha256-simd 进行SHA256 benchmark,和Golang官方`crypto/sha256` 的SHA256 benchmark结果进行对比,了解sha256-simd的加速效果。
**比对结果**
在阿里云上,有较明显的加速效果;但其它设备上速度无提升
**硬件信息**
| 设备地址 | CPU信息 |
| --- | --- |
| 121.40.199.54【阿里云】 | Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz |
| 192.168.100.252 | Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz |
| 192.168.100.254 | Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz |
|本地PC|Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz|
**详细结果**
54阿里云服务器\_效果提升明显,可以提升47%

252服务器比对结果\_无提升

254服务器比对结果\_略微提升

本地PC比对结果\_无提升

**测试流程**
* 在`go/src/crypto/sha256`中,进行benchmark
~~~
cd go/src/crypto/sha256
go test -bench=. ./... > ~/result/golang.txt
~~~
* 在`sha256-simd`中,进行benchmark
~~~
cd GoWorkSpace/src/github.com/minio/sha256-simd
go test -bench=. ./... > ~/result/simd.txt
~~~
* 进行benchcmp,得到结果
~~~
cd ~/result
benchcmp golang.txt simd.txt
~~~