MAGIC - add benchmark test result

This commit is contained in:
Emman 2021-01-19 14:34:46 +08:00
parent afb0962761
commit 9d130b0a28
2 changed files with 20 additions and 12 deletions

View File

@ -8,6 +8,14 @@
PASS
ok gmsm/sm2 5.629s
P-256/SM2(with P256/SM2 curve implementation, first version)
goos: windows
goarch: amd64
pkg: gmsm/sm2
BenchmarkLessThan32_P256SM2-6 1027 1169516 ns/op 3874 B/op 74 allocs/op
PASS
ok gmsm/sm2 1.564s
P-256
goos: windows
goarch: amd64

View File

@ -547,18 +547,18 @@ func p256ReduceDegree(out *[p256Limbs]uint32, tmp [17]uint64) {
//
// Word: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// 29 28 29 29 29 29 29 28 28 28 28 28 28 28 28 28
// 28 29 28 29 28 29 28 29 28 29 28 29 28 29
// 29 28 28 28 29 28 29 28 29 28 29 28 29
// 29 28 29 28 29 29 29 29 29 29 29 29 29
// 28 29 29 29 28 29 28 29 28 29 28
// 28 29 28 29 28 29 28 29 28 29
// 29 28 29 28 29 28 29 28 29
// 29 28 28 29 29 29 29 29 29
// 28 29 28 28 28 28 28
// 28 29 28 29 28 29
// 29 28 29 28 29
// 29 28 29 28 29
// 29 28 29
// 28 29 28 29 28 29 28 29 28 29 28 29 28 29
// 29 28 28 28 29 28 29 28 29 28 29 28 29
// 29 28 29 28 29 29 29 29 29 29 29 29 29
// 28 29 29 29 28 29 28 29 28 29 28
// 28 29 28 29 28 29 28 29 28 29
// 29 28 29 28 29 28 29 28 29
// 29 28 28 29 29 29 29 29 29
// 28 29 28 28 28 28 28
// 28 29 28 29 28 29
// 29 28 29 28 29
// 29 28 29 28 29
// 29 28 29
// 29
// -------------------------------------------------
// according the table, from tmp2[6] to tmp[14], consider their initial value,