Created
May 19, 2025 06:41
-
-
Save antonkalik/28ea40c2ba38c5a60ee13bdb011b46c2 to your computer and use it in GitHub Desktop.
bigInt
This file contains hidden or 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
console.time("Node Loop Benchmark"); | |
let sum = 0n; | |
for (let i = 0n; i < 1_000_000_000n; i++) { | |
sum += i; | |
} | |
console.timeEnd("Node Loop Benchmark"); | |
console.log("Sum:", sum.toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment