Skip to content

Instantly share code, notes, and snippets.

@martinus
Last active December 4, 2023 15:27
Show Gist options
  • Save martinus/cd2c3cde9f1a7b7f72b32f86996f94f5 to your computer and use it in GitHub Desktop.
Save martinus/cd2c3cde9f1a7b7f72b32f86996f94f5 to your computer and use it in GitHub Desktop.
secp256k1 benchmark

Benchmark System

  • AMD Ryzen 9 7950X
  • ./configure CXX=clang++ CC=clang && make && ./bench
  • clang version 17.0.4 (Fedora 17.0.4-1.fc39)

master (d3e29db)

Benchmark                     ,    Min(us)    ,    Avg(us)    ,    Max(us)

ecdsa_verify                  ,    25.2       ,    25.2       ,    25.3
ecdsa_sign                    ,    18.0       ,    18.0       ,    18.1
ec_keygen                     ,    13.8       ,    13.9       ,    13.9
ecdh                          ,    24.5       ,    24.6       ,    24.6
schnorrsig_sign               ,    14.5       ,    14.5       ,    14.5
schnorrsig_verify             ,    25.6       ,    25.6       ,    25.6
ellswift_encode               ,    12.0       ,    12.0       ,    12.0
ellswift_decode               ,     5.27      ,     5.28      ,     5.28
ellswift_keygen               ,    25.9       ,    25.9       ,    25.9
ellswift_ecdh                 ,    26.5       ,    26.6       ,    26.6

before asm removal (1ddd76af)

Benchmark                     ,    Min(us)    ,    Avg(us)    ,    Max(us)

ecdsa_verify                  ,    28.1       ,    28.1       ,    28.1
ecdsa_sign                    ,    19.3       ,    19.3       ,    19.4
ec_keygen                     ,    15.1       ,    15.1       ,    15.1
ecdh                          ,    26.7       ,    26.8       ,    26.8
schnorrsig_sign               ,    15.8       ,    15.8       ,    15.8
schnorrsig_verify             ,    28.4       ,    28.4       ,    28.5
ellswift_encode               ,    12.9       ,    12.9       ,    12.9
ellswift_decode               ,     5.84      ,     5.84      ,     5.85
ellswift_keygen               ,    28.0       ,    28.0       ,    28.0
ellswift_ecdh                 ,    28.8       ,    28.8       ,    28.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment