ETCDEVTeam / libsecp256k1-rs

Pure Rust Implementation of secp256k1.
Apache License 2.0
12 stars 8 forks source link

Need some performance banchmark. #2

Open jerry-sl opened 6 years ago

jerry-sl commented 6 years ago

Hi, sorpaas. Thx for this pure rust secp256k1 lib. I wonder there has some performance test or has some work in process?

I wrote a demo to benchmark sign, verify and recover. But the result is not good than c-binding lib. May be i am test the wrong way. If you have any time to review my code and give some advice. I was glad to fix and improve my test. Thx.

sorpaas commented 6 years ago

Hi. Thanks! I'll take a look next week on this.

What's the C version of secp256k1 benchmark you're comparing against? Depending on how you compiled the C version, it might give out different results. For example, in Rust we don't yet have assembly optimizations to keep it pure no_std and capable to compile to WebAssembly.

Right now it might be fair right now to compare with the C version compiled with the following config flags: