#### **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
~~~