Giter VIP home page Giter VIP logo

Comments (4)

chrisdone avatar chrisdone commented on September 9, 2024

This is why weigh's main entry point runs each test as a separate program so that it's reproducible. With the following

main :: IO ()
main =
  mainWith (func "ivan test" (SB.length . SB.pack) (replicate 1000000 0))

I get this every time:

Case       Allocated  GCs         Max
ivan test  49,000,096   91  23,999,952

from weigh.

ivan-m avatar ivan-m commented on September 9, 2024

So it's not possible to use weigh as a library without the mainWith function?

from weigh.

chrisdone avatar chrisdone commented on September 9, 2024

I don't know of a way to do it.

from weigh.

ivan-m avatar ivan-m commented on September 9, 2024

Note also that this requires having the same function/variable being re-evaluated as well; if I do something as simple as creating a new GetWeight value then running it, then it works.

from weigh.

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.