JSFiddle - React, Tailwind, and code Playground
by msfrisbie
JavaScript
let arr = [];
for (let i = 0; i < 1E8; ++i) {
arr.push(Math.random());
}
console.log(performance.now());
console.log(arr.reduce((x, y) => x + y));
console.log(performance.now());