Skip to content

Instantly share code, notes, and snippets.

@RobbinBaauw
Created August 20, 2020 15:15
Show Gist options
  • Save RobbinBaauw/dff784f226950e888a64c39febd927d0 to your computer and use it in GitHub Desktop.
Save RobbinBaauw/dff784f226950e888a64c39febd927d0 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://pastebin.com/raw/yQX0vvrx"></script>
</head>
<body>
<p id="memory"/>
<script>
const ref = VueReactivityIsRefProto.ref;
//const ref = VueReactivityIsRefField.ref;
const refs = Array(1_000_000);
for (let i = 0; i < refs.length; i++) {
refs[i] = ref(i);
}
document.getElementById("memory").innerHTML = `We're using about ${window.performance.memory.usedJSHeapSize / 1024 / 1024}mb of memory. For a more accurate measurement, do a memory profile!`;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment