mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
sm9: update README
This commit is contained in:
parent
f58cb10ad9
commit
b197c96040
@ -15,6 +15,12 @@
|
|||||||
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
||||||
BenchmarkSign-6 1344 871597 ns/op 35870 B/op 1013 allocs/op
|
BenchmarkSign-6 1344 871597 ns/op 35870 B/op 1013 allocs/op
|
||||||
|
|
||||||
|
优化后(减少乘法、优化Invert)性能:
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm9
|
||||||
|
cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
|
||||||
|
BenchmarkSign-8 2841 392368 ns/op 19845 B/op 545 allocs/op
|
||||||
|
|
||||||
**SM9 Verify Benchmark**
|
**SM9 Verify Benchmark**
|
||||||
|
|
||||||
@ -24,6 +30,13 @@
|
|||||||
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
||||||
BenchmarkVerify-6 352 3331673 ns/op 237676 B/op 6283 allocs/op
|
BenchmarkVerify-6 352 3331673 ns/op 237676 B/op 6283 allocs/op
|
||||||
|
|
||||||
|
优化后(减少乘法、优化Invert)性能:
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm9
|
||||||
|
cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
|
||||||
|
BenchmarkVerify-8 709 1710580 ns/op 179686 B/op 4370 allocs/op
|
||||||
|
|
||||||
**SM9 Encrypt(XOR) Benchmark**
|
**SM9 Encrypt(XOR) Benchmark**
|
||||||
|
|
||||||
goos: windows
|
goos: windows
|
||||||
@ -32,6 +45,13 @@
|
|||||||
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
||||||
BenchmarkEncrypt-6 1120 971188 ns/op 38125 B/op 1036 allocs/op
|
BenchmarkEncrypt-6 1120 971188 ns/op 38125 B/op 1036 allocs/op
|
||||||
|
|
||||||
|
优化后(减少乘法、优化Invert)性能:
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm9
|
||||||
|
cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
|
||||||
|
BenchmarkEncrypt-8 2551 440724 ns/op 21149 B/op 553 allocs/op
|
||||||
|
|
||||||
**SM9 Decrypt(XOR) Benchmark**
|
**SM9 Decrypt(XOR) Benchmark**
|
||||||
|
|
||||||
goos: windows
|
goos: windows
|
||||||
@ -40,6 +60,13 @@
|
|||||||
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
|
||||||
BenchmarkDecrypt-6 507 2345492 ns/op 202360 B/op 5228 allocs/op
|
BenchmarkDecrypt-6 507 2345492 ns/op 202360 B/op 5228 allocs/op
|
||||||
|
|
||||||
|
优化后(减少乘法、优化Invert)性能:
|
||||||
|
goos: windows
|
||||||
|
goarch: amd64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm9
|
||||||
|
cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
|
||||||
|
BenchmarkDecrypt-8 925 1310317 ns/op 159924 B/op 3811 allocs/op
|
||||||
|
|
||||||
**SM9 Generate User Sign Private Key Benchmark**
|
**SM9 Generate User Sign Private Key Benchmark**
|
||||||
|
|
||||||
goos: windows
|
goos: windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user