Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ecvrf #526

Merged
merged 3 commits into from
May 25, 2022
Merged

Upgrade ecvrf #526

merged 3 commits into from
May 25, 2022

Conversation

qianbin
Copy link
Member

@qianbin qianbin commented May 25, 2022

faster and less allocs

benchstat master.txt pr.txt 
name                                old time/op    new time/op    delta
VRF/secp256k1sha256tai-proving-8       483µs ±19%     281µs ± 9%  -41.97%  (p=0.008 n=5+5)
VRF/secp256k1sha256tai-verifying-8     645µs ± 7%     411µs ± 2%  -36.28%  (p=0.008 n=5+5)
VRF/p256sha256tai-proving-8            257µs ±11%     192µs ± 0%  -25.36%  (p=0.008 n=5+5)
VRF/p256sha256tai-verifying-8          353µs ± 8%     302µs ± 0%  -14.26%  (p=0.008 n=5+5)

name                                old alloc/op   new alloc/op   delta
VRF/secp256k1sha256tai-proving-8      15.5kB ±49%     4.9kB ± 0%  -68.42%  (p=0.008 n=5+5)
VRF/secp256k1sha256tai-verifying-8    15.8kB ±31%     5.0kB ± 0%  -68.24%  (p=0.016 n=5+4)
VRF/p256sha256tai-proving-8           12.0kB ±22%     9.1kB ± 0%  -24.10%  (p=0.008 n=5+5)
VRF/p256sha256tai-verifying-8         18.7kB ±12%    19.5kB ± 0%     ~     (p=0.127 n=5+5)

name                                old allocs/op  new allocs/op  delta
VRF/secp256k1sha256tai-proving-8        512 ±100%        95 ± 0%  -81.45%  (p=0.008 n=5+5)
VRF/secp256k1sha256tai-verifying-8       526 ±62%       114 ± 0%  -78.34%  (p=0.008 n=5+5)
VRF/p256sha256tai-proving-8              383 ±45%       294 ± 0%     ~     (p=0.127 n=5+5)
VRF/p256sha256tai-verifying-8            498 ±30%       515 ± 0%     ~     (p=0.683 n=5+5)

@qianbin qianbin merged commit a1cb0a8 into vechain:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants