Giter VIP home page Giter VIP logo

Comments (2)

hi-ogawa avatar hi-ogawa commented on May 28, 2024

It looks like generated json file is very huge due to all samples and JSON.stringify makes all double floating point to ascii strings, so it'll gets bigger in memory.

I'm not sure if samples are something users can consume, so maybe we need to make it opt-in to output this.

if (!outputFile)
res.samples = 'ignore on terminal' as any

await this.writeReport(JSON.stringify(result, null, 2))

Not sure if it runs on stackblitz, but what I tested was something like this:
https://stackblitz.com/edit/vitest-dev-vitest-suaxsm?file=test%2Fbasic.bench.ts

$ ls -lh examples/basic/out.json 
-rw-r--r-- 1 hiroshi hiroshi 399M Mar  7 12:31 examples/basic/out.json
{
  "numTotalTestSuites": 1,
  "numTotalTests": 1,
  "testResults": {
    "": [
      {
        "name": "foo",
        "rank": 1,
        "rme": 0.5177719116201918,
        "samples": [
          0.00002999999992425728,
          0.00002999999992425728,
          ...

from vitest.

sheremet-va avatar sheremet-va commented on May 28, 2024

Let's close this in favour of #5297.

from vitest.

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.