Performance: memory property - Web APIs | MDN

The non-standard and legacy memory read-only property returns the size of the JavaScript heap which can be helpful to measure and reduce the memory footprint of websites.