Code Monkey home page Code Monkey logo

excel-benchmarks's People

Contributors

lukedays avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

excel-benchmarks's Issues

Challenge accepted!

You really threw down the gauntlet here :-) I must admit I was little disappointed with xlOil's performance so I added the xloil.FastArray type in xlOil 0.14.1:

@xlo.func
def SumXloilNumpyFast(x: xlo.FastArray) -> float:  # Or use xlo.Array(float, fast=True)
    return np.sum(x)

This narrows the performance gap considerably (to nearly zero)!

There is another trick which can be done with xlOil (and Keith's xlladdins) in some circumstances: rather than pass around giant arrays, use the cache functionality. Creating a cached Excel object using =xloRef(Test1Input) and passing that into your SumXloilNumpy gives a runtime of about 2x SUM. Even better the numpy array can be cached by defining:

@xlo.func
def ToPyObj(x) -> xlo.Cache:
    return x 

Passing this to SumXloilNumpy benchmarks at around 0.5 x SUM.

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.