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

beempy is slow #264

Open
Gandalf-the-Grey opened this issue Oct 18, 2020 · 4 comments
Open

beempy is slow #264

Gandalf-the-Grey opened this issue Oct 18, 2020 · 4 comments

Comments

@Gandalf-the-Grey
Copy link

So I just installed current beem using github clone
then python3 setup.py build python3 setup.py install --user
and beempy is ridiculously slow, even for trivial operations:

sandbox@sandbox:~/beem$ time beempy --version
beempy, version 0.24.14

real    0m6.690s
user    0m6.092s
sys     0m0.603s

What I'm doing wrong? How to speed things up?

btw, using pip3 install beem is slightly faster

beempy, version 0.24.13

real    0m4.507s
user    0m4.301s
sys     0m0.199s

but problem is pretty much same

@holgern
Copy link
Owner

holgern commented Oct 18, 2020

Strange, on my server:

beempy, version 0.24.13

real    0m1.081s
user    0m1.033s
sys     0m0.049s

Does installation of

pip3 install -U cryptography

or

pip3 install -U secp256k1prp

Change something?

@holgern
Copy link
Owner

holgern commented Oct 18, 2020

A downgrade of ecdsa to 0.14 increases the load speed, could you test this also:

pip3 install ecdsa==0.14

time beempy --version
beempy, version 0.24.13

real 0m0.511s
user 0m0.454s
sys 0m0.057s

@holgern
Copy link
Owner

holgern commented Oct 18, 2020

Can you also test the newest ecdsa with gmpy2?

pip3 install ecdsa -U
apt install python3-gmpy2

time beempy --version
beempy, version 0.24.13

real 0m0.618s
user 0m0.526s
sys 0m0.087s

@Gandalf-the-Grey
Copy link
Author

time beempy --version:

beempy, version 0.24.13

real    0m4.582s
user    0m4.367s
sys     0m0.203s

after using pip3 install -U cryptography it's actually slower:

beempy, version 0.24.13  

real    0m5.196s
user    0m4.966s
sys     0m0.222s

similar after pip3 install -U secp256k1prp:

beempy, version 0.24.13

real    0m5.037s
user    0m4.830s
sys     0m0.184s

(most likely because using versions slower than those that comes with distro)

however, after pip3 install ecdsa==0.14 while still slow, it's way better:

beempy, version 0.24.13

real    0m2.609s
user    0m2.439s
sys     0m0.164s

with ecdsa upgraded to 0.16 and with installed python3-gmpy2:

beempy, version 0.24.13

real    0m3.452s
user    0m3.234s
sys     0m0.161s

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

No branches or pull requests

2 participants