Skip to content

Instantly share code, notes, and snippets.

@auxten
Last active December 22, 2021 03:41
Show Gist options
  • Save auxten/7f612c197200ced21a04bbee507b3635 to your computer and use it in GitHub Desktop.
Save auxten/7f612c197200ced21a04bbee507b3635 to your computer and use it in GitHub Desktop.
Golang Elliptic Curve benchmark

Golang Elliptic Curve benchmark

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