Open D-Sketon opened 4 days ago
Since the default reporter doesn't need entire samples
array, we can probably free it early and only keep track of samplesCount
instead.
Reproduction by generating bench files https://stackblitz.com/edit/vitest-dev-vitest-7ovbya?file=src%2Fgen.mjs
Describe the bug
ref: https://github.com/vitest-dev/vitest/discussions/6535
I'm a contributor of es-toolkit. When I try to run about 200+ bench.ts using yarn vitest bench, the memory footprint is too high. I allocated 26000mb of memory for the node and it still crashes. benchmark: https://github.com/toss/es-toolkit/tree/main/benchmarks/performance
Reproduction
vitest bench
System Info
Used Package Manager
yarn
Validations