mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
Add sm3 benchmark
This commit is contained in:
parent
74f6570953
commit
106d60273f
18
README.md
18
README.md
@ -40,3 +40,21 @@ For implementation detail, please refer https://github.com/emmansun/gmsm/wiki
|
|||||||
BenchmarkMoreThan32-6 13656 86252 ns/op 3141 B/op 50 allocs/op
|
BenchmarkMoreThan32-6 13656 86252 ns/op 3141 B/op 50 allocs/op
|
||||||
PASS
|
PASS
|
||||||
ok gmsm/sm2 4.139s
|
ok gmsm/sm2 4.139s
|
||||||
|
|
||||||
|
**SM3 hash Benchmark**
|
||||||
|
|
||||||
|
Pure golang version
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm3
|
||||||
|
BenchmarkHash8K-6 27097 41112 ns/op 199.26 MB/s 0 B/op 0 allocs/op
|
||||||
|
PASS
|
||||||
|
ok github.com/emmansun/gmsm/sm3 3.463s
|
||||||
|
|
||||||
|
ASM (non-AVX2) version
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm3
|
||||||
|
BenchmarkHash8K-6 34915 34256 ns/op 239.14 MB/s 0 B/op 0 allocs/op
|
||||||
|
PASS
|
||||||
|
ok github.com/emmansun/gmsm/sm3 2.797s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user