Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Golang Elliptic Curve benchmark

Golang Elliptic Curve benchmark

Benchmark Code: https://github.com/CovenantSQL/CovenantSQL/blob/develop/crypto/asymmetric/signature_test.go#L204

BenchmarkSign/Secp256k1-12                   20000         66413 ns/op
BenchmarkSign/Secp256k1-25%-12               20000         64881 ns/op
BenchmarkSign/C-Secp256k1-12                 20000         77700 ns/op
BenchmarkSign/P224-12                         2000        627489 ns/op
BenchmarkSign/P256-12                       100000         22207 ns/op
BenchmarkSign/P384-12                          300       3394950 ns/op
BenchmarkSign/P521-12                          200       6457726 ns/op
BenchmarkSign/Curve25519-12                  30000         43507 ns/op
BenchmarkVerify/Secp256k1-12                 10000        184681 ns/op
BenchmarkVerify/Secp256k1-25%-12             10000        193607 ns/op
BenchmarkVerify/C-Secp256k1-12               10000        110196 ns/op
BenchmarkVerify/P224-12                       1000       1236956 ns/op
BenchmarkVerify/P256-12                      20000         63792 ns/op
BenchmarkVerify/P384-12                        100      13667608 ns/op
BenchmarkVerify/P521-12                        100      24233269 ns/op
BenchmarkVerify/ed25519-12                   10000        118131 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.