Created
November 4, 2019 00:14
-
-
Save xPomaHx/96fa35d1b51c3670e85ff5338117e7fb to your computer and use it in GitHub Desktop.
litle front spamm test
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
(async () => { | |
Promise.all(Array(999).fill(true).map(() => | |
fetch("/") | |
.then(response => (response.text())))) | |
.then(ar => { | |
console.dir(ar.reduce((acc, responseBody) => { | |
if (!acc[responseBody]) acc[responseBody] = 0 | |
acc[responseBody] += 1; | |
}, {})) | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment