Comments (3)
Hey @mishrsud. Thanks for your feedback! :)
Yeah, to be perfectly honest I am not completely sure about this yet either.
It's definitely a trade-off. More iterations might provide a higher confidence level, but will also take longer and longer to run. And memory leak testing is quite expensive in terms of time consumption...
I think we still need more experience in using leakage for memory leak testing. The lib is not even one month old, so for me it is hard to tell as well.
My experience so far: The heap snapshotting/diffing works quite precisely, except for the first snapshot (still got to debug why) and it triggers a full GC before snapshotting, providing almost noise-free results.
I am quite confident that even few iterations work well for simple cases. I would assume it works for more complex tests just as fine, since a heap snapshot is a heap snapshot, no matter how much heap operations have been done and the test fails if the heap size increased, regardless of what made it grow.
Please share your experiences any time! :)
from leakage.
Update: The new version that is about to be released comes with a slightly changed API.
In future you won't have to pass the iterations
count anymore. You can pass an options object and set a custom value, though, if you need to. But I think the default values (30 x 6) work pretty good and will make this issue way less important.
So I will close the issue as soon as the new version is released. If you feel that this issue is still important, share your thoughts any time
from leakage.
Leakage 0.3 is out and the new API will make this topic less interesting. It is also mentioned in the readme's FAQ.
from leakage.
Related Issues (20)
- Custom Error HOT 2
- What Terminal are you using? HOT 2
- question with mocha test , how can i detect `iterate` was done ? HOT 2
- Document best practices: console.log HOT 9
- Document best practices HOT 6
- To Do: Add to node-memory-leak-tutorial HOT 3
- Rewrite of the lib for reliable async testing 🎉🎉 HOT 1
- How to catch a probable false alarm HOT 3
- cannot install on node 10 HOT 6
- Vue.js example code HOT 6
- Testing code with promises HOT 3
- Can not 'passing'? HOT 2
- Extremely low performance on node.js 11 HOT 3
- Failed to install on Windows HOT 5
- Package not working with NodeJS 12 HOT 18
- Cannot install on node 10.15.1 HOT 5
- Varying results for same test HOT 1
- Testing / CI HOT 5
- Promise support HOT 33
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leakage.