// Sum loop benchmark - tight numeric loop function sumTo(n) { let acc = 0; for (let i = 1; i <= n; i++) { acc += i; } return acc; } const result = sumTo(10000000); console.log(`Sum to 10M: ${result}`);