-
-
Save asen-ruuby/b7c653cc7c502a70d2a9647e187c07b8 to your computer and use it in GitHub Desktop.
JSON.stringify
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
const arr = []; | |
for (let i = 0; i < 10_000_000; i++) { | |
arr.push(i); | |
} | |
console.time('JSON.stringify'); | |
JSON.stringify(arr); | |
console.timeEnd('JSON.stringify'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment