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

add BenchmarkEncrypt #22

Merged
merged 3 commits into from
Feb 2, 2022
Merged

add BenchmarkEncrypt #22

merged 3 commits into from
Feb 2, 2022

Conversation

guotie
Copy link

@guotie guotie commented Jan 18, 2022

add BenchmarkEncrypt

@savely-krasovsky savely-krasovsky merged commit b8b2562 into ecies:master Feb 2, 2022
@savely-krasovsky
Copy link
Member

@guotie i switched to more mature secp256k1 libs and even w/o CGO achieved huge improvment over the old version:
Old bench:

goos: linux
goarch: amd64
pkg: github.com/ecies/go/v2
cpu: AMD Ryzen 7 5700G with Radeon Graphics         
BenchmarkEncrypt-16          603           1950638 ns/op         1618783 B/op      18832 allocs/op

New bench w/o CGO:

goos: linux
goarch: amd64
pkg: github.com/ecies/go/v2
cpu: AMD Ryzen 7 5700G with Radeon Graphics         
BenchmarkEncrypt-16        10000            112632 ns/op            5655 B/op         68 allocs/op

More at: https://github.com/ecies/go#benchmarks

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