Git Product home page Git Product logo

Comments (2)

shoumikhin avatar shoumikhin commented on April 28, 2024

Thanks, Peter!

Actually, the library has been there for a while and we used it internally instead of any other 3rd party solution. Eventually, we've decided to make it public in hope the community would find it useful and contribute with improvements.

Here's the data for Bolts ObjC performance tests you've requested:

Test Case Time in sec
testContinueWithBlockOnSerialQueue 0.00002586
testDoubleContinueWithBlockOnSerialQueue 0.00003285
testTripleContinueWithBlockOnSerialQueue 0.00003776
testContinueWithBlockOnConcurrentQueue 0.02312784

And these are the numbers for Promises ObjC performance tests, ran on the same device (iPhone 6s, iOS, 11.2.5):

Test Case Time in sec
testThenOnSerialQueue 0.00002572
testDoubleThenOnSerialQueue 0.00003398
testTripleThenOnSerialQueue 0.00003697
testThenOnConcurrentQueue 0.02318964

The results look surprisingly similar. Presumably, because both Bolts and Promises are highly optimized to provide minimum overhead over plain GCD.

Feel free to contribute with other types of tests you'd like to see. Code snippets are highly appreciated.

from promises.

steipete avatar steipete commented on April 28, 2024

Thanks! We'll look at both and potentially follow up with a post. I appreciate the time!

from promises.

Related Issues (20)

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.