-
-
Save RobbinBaauw/4538bf492c85346d17e9732851205c2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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