Number vs bigint

Benchmark created on


Setup

let n = 0;
let b = 0n;

Test runner

Ready to run.

Testing in
TestOps/sec
int
for(let i = 0; i < 1000; ++i)
                n += i
ready
bigint
 for(let i = 0n; i < 1000n; ++i)
                b += i
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.