Skip to content

Instantly share code, notes, and snippets.

@RobbinBaauw
Last active August 15, 2020 08:06
Show Gist options
  • Save RobbinBaauw/4538bf492c85346d17e9732851205c2b to your computer and use it in GitHub Desktop.
Save RobbinBaauw/4538bf492c85346d17e9732851205c2b to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://pastebin.com/raw/VGdL7z74"></script>
</head>
<body>
<p id="memory"/>
<script>
// const ref = VueReactivity.ref;
const ref = VueReactivityRefClass.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