Coder Social home page Coder Social logo

why is Lucet slower than wasmtime about lucet HOT 4 CLOSED

ZW007 avatar ZW007 commented on May 29, 2024
why is Lucet slower than wasmtime

from lucet.

Comments (4)

jedisct1 avatar jedisct1 commented on May 29, 2024 1

Lucet is slow with the default settings.

Adding --reserved-size "4GiB" to the lucetc-wasi command immediately makes its performance match wasmtime's.

from lucet.

cfallin avatar cfallin commented on May 29, 2024

That's a good question; more data and investigation on this would certainly be useful! (Though in the medium-to-long term, the plan is to merge Lucet and Wasmtime so it may not matter as much.)

My suspicion is that this has to do with the FuncEnvironment that each compiler plugs into the Cranelift backend -- this allows a user of Cranelift to customize the code sequences for certain operations, such as heap accesses or function calls. So perhaps the differences in those sequences or the data structures that they access account for some of the performance delta. But this could use more study!

from lucet.

tschneidereit avatar tschneidereit commented on May 29, 2024

@ZW007 while as Chris says in the long term this might matter less, I think it'd be great to find the source of the difference nevertheless. Do you by any chance have code you could share that shows this difference in performance?

from lucet.

ZW007 avatar ZW007 commented on May 29, 2024

@tschneidereit Hi Till. I tested several. For example, a matrix task that takes seconds to finish

from lucet.

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.