Test (v2)

Revision 2 of this benchmark created on


Setup

let a, b = [1n, 3n];
let d, e = [1, 3];

let c = new BigInt64Array( [1n, 3n] )

Test runner

Ready to run.

Testing in
TestOps/sec
BigInt
for(let i = 0; i < 20; ++i)

   a *= b
ready
Array
for(let i = 0; i < 20; ++i)

   c[0] *= c[1]
ready
Array 2
let d = c[1]

for(let i = 0; i < 20; ++i)

   c[0] *= d
ready
Numbers
for(let i = 0; i < 20; ++i)

   d *= e
ready

Revisions

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