GithubHelp home page GithubHelp logo

fibonacci's Introduction

10 способов релизовать Fibonacci

Реализовано в рамках стрима https://www.youtube.com/watch?v=gYmNqF6bJJ4

Benchmark

$ make

Comparison:
with_class_varialble: 14094129.7 i/s
         memoization: 10714661.2 i/s - 1.32x  slower
           singleton:  5025901.4 i/s - 2.80x  slower
                loop:   695918.1 i/s - 20.25x  slower
           iterative:   695918.1 i/s - 22.35x  slower
          functional:   297923.1 i/s - 47.31x  slower
          fast_array:   286445.8 i/s - 49.20x  slower
                fast:   190578.0 i/s - 73.95x  slower
             adapter:   145293.1 i/s - 97.00x  slower
    cached in memory:   113326.2 i/s - 124.37x  slower
              object:    85734.6 i/s - 164.39x  slower
     cached in redis:     3471.4 i/s - 4060.12x  slower
recursive without memoization:     2059.7 i/s - 6842.93x  slower
               naive:       14.7 i/s - 956878.59x  slower

fibonacci's People

Contributors

sergio-fry avatar

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.