Giter Site home page Giter Site logo

Concurrent usage? about stellar-keypair-tool HOT 8 CLOSED

jorbs avatar jorbs commented on September 26, 2024
Concurrent usage?

from stellar-keypair-tool.

Comments (8)

xeoncross avatar xeoncross commented on September 26, 2024 1

157942 tries in 2.17614s using 4 threads so about 72k/s plus the added string comparison you are doing. So almost 2x as fast as the go version for me (42k/s).

from stellar-keypair-tool.

jorbs avatar jorbs commented on September 26, 2024

Currently I'm working on a multi-threaded implementation. So that you can pass as parameter the number of threads to find the search term. If that value isn't provided, then the tool will calculate that number automatically. I've create #2 to this.

from stellar-keypair-tool.

jorbs avatar jorbs commented on September 26, 2024

@xeoncross would you like to make a PR for this? I have half of the code ready...

from stellar-keypair-tool.

xeoncross avatar xeoncross commented on September 26, 2024

Sorry, I don't understand. I do not have a repo to pull from/to. I was comparing this C++ version to the Go version.

from stellar-keypair-tool.

jorbs avatar jorbs commented on September 26, 2024

Gotcha!

from stellar-keypair-tool.

jorbs avatar jorbs commented on September 26, 2024

@xeoncross the concurrency implementation is finished. let me know if you intend to do a new round of comparison.

from stellar-keypair-tool.

xeoncross avatar xeoncross commented on September 26, 2024

Awesome. Since my machine and yours are different I threw a little multicore demo together for you to compare against: https://gist.github.com/Xeoncross/15c5a135352ec1ed76145875dffd86b5

I get about 42,000/s on an older Core i5

from stellar-keypair-tool.

jorbs avatar jorbs commented on September 26, 2024

Here I get ~32,000/s on a 2,9 GHz Intel Core i5.

from stellar-keypair-tool.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.