BigInt vs TypedArray

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
BigInt
let c;
for(let i = 3000; i < 40000; ++i)
    c = BigInt(i)
ready
TypedArray
let c;
for(let i = 3000; i < 40000; ++i)
    c = new BigInt64Array([BigInt(i)]);
ready
TypedArray2
let c;
for(let i = 3000; i < 40000; ++i){
	 c = new BigInt64Array(1)
     c[0] = BigInt(i)
 }
ready
TypedArray3
let c = new BigInt64Array(1)
for(let i = 3000; i < 40000; ++i){
     c[0] = BigInt(i)
 }
ready

Revisions

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